X-MimeOLE: Produced By Microsoft Exchange V6.5
Received: by onstor-exch02.onstor.net 
	id <01C86204.6BA1F1F7@onstor-exch02.onstor.net>; Mon, 28 Jan 2008 16:20:50 -0700
MIME-Version: 1.0
Content-Type: multipart/alternative;
	boundary="----_=_NextPart_001_01C86204.6BA1F1F7"
Content-class: urn:content-classes:message
Subject: RE: Jan Seidel programming problem
Date: Mon, 28 Jan 2008 16:20:50 -0700
Message-ID: <BB375AF679D4A34E9CA8DFA650E2B04E04DCA8D2@onstor-exch02.onstor.net>
In-Reply-To: <9466D7F3-81BB-420F-B34B-A931124EE55B@onstor.com>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: Jan Seidel programming problem
Thread-Index: AchiBCQ6FeBa4dLDTz64PdjdJ3RMNgAAD7pA
From: "Amit Bothra" <amit.bothra@onstor.com>
To: "Ian Brown" <ian.brown@onstor.com>,
	"Brian DeForest" <brian.deforest@onstor.com>
Cc: "Andy Sharp" <andy.sharp@onstor.com>,
	"Jonathan Goldick" <jonathan.goldick@onstor.com>

This is a multi-part message in MIME format.

------_=_NextPart_001_01C86204.6BA1F1F7
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Sounds good.

=20

Thanks,

Amit

=20

________________________________

From: Ian Brown [mailto:ian.brown@onstor.com]=20
Sent: Monday, January 28, 2008 3:19 PM
To: Brian DeForest
Cc: Amit Bothra; Andy Sharp; Jonathan Goldick
Subject: Re: Jan Seidel programming problem

=20

here's what I'll ask him:

=20

1) why does this crash:

=20

#include <stdio.h>

int main ()=20

{

    char *x;

    printf("Shall we proceed [y/n]: ");

    scanf("%s", x);

    printf("\nThe answer was:%s\n", x);

}

=20

2) what is a typedef used for?

3) what are function pointers useful for?

=20

=20

sound good?

=20

=20

Ian

=20

=20

On Jan 28, 2008, at 2:55 PM, Brian DeForest wrote:

=20

Sounds good.   The goal is not to stump him, but to give him something
solvable to verify he has good C programming skills.

=20

________________________________

From: Ian Brown [mailto:ian.brown@onstor.com]=20
Sent: Monday, January 28, 2008 2:46 PM
To: Brian DeForest
Cc: Amit Bothra; Andy Sharp; Jonathan Goldick
Subject: Re: Jan Seidel programming problem

I can.=20

=20

On Jan 28, 2008, at 2:33 PM, Brian DeForest wrote:

=20

One of us should give Jan an opportunity to write C code.  Should be
solvable in a few minutes and involve pointers. =20

Probably not a good use of Jonathan's time. =20

Bring a pad of paper since there are no white boards.=20

Volunteers?=20

Brian=20

=20

=20


------_=_NextPart_001_01C86204.6BA1F1F7
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns=3D"http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">
<meta name=3DGenerator content=3D"Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
	{font-family:Tahoma;
	panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman";}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{color:blue;
	text-decoration:underline;}
p
	{mso-margin-top-alt:auto;
	margin-right:0in;
	mso-margin-bottom-alt:auto;
	margin-left:0in;
	font-size:12.0pt;
	font-family:"Times New Roman";}
span.EmailStyle18
	{mso-style-type:personal-reply;
	font-family:Arial;
	color:navy;}
@page Section1
	{size:8.5in 11.0in;
	margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
	{page:Section1;}
-->
</style>

</head>

<body lang=3DEN-US link=3Dblue vlink=3Dblue style=3D'word-wrap: =
break-word;-webkit-nbsp-mode: space;
-webkit-line-break: after-white-space'>

<div class=3DSection1>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>Sounds =
good.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>Thanks,<o:p></o:p></span></font></p>=


<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>Amit<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<div>

<div class=3DMsoNormal align=3Dcenter style=3D'text-align:center'><font =
size=3D3
face=3D"Times New Roman"><span style=3D'font-size:12.0pt'>

<hr size=3D2 width=3D"100%" align=3Dcenter tabindex=3D-1>

</span></font></div>

<p class=3DMsoNormal><b><font size=3D2 face=3DTahoma><span =
style=3D'font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font =
size=3D2
face=3DTahoma><span style=3D'font-size:10.0pt;font-family:Tahoma'> Ian =
Brown
[mailto:ian.brown@onstor.com] <br>
<b><span style=3D'font-weight:bold'>Sent:</span></b> Monday, January 28, =
2008
3:19 PM<br>
<b><span style=3D'font-weight:bold'>To:</span></b> Brian DeForest<br>
<b><span style=3D'font-weight:bold'>Cc:</span></b> Amit Bothra; Andy =
Sharp;
Jonathan Goldick<br>
<b><span style=3D'font-weight:bold'>Subject:</span></b> Re: Jan Seidel
programming problem</span></font><o:p></o:p></p>

</div>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'>here's what I'll ask him:<o:p></o:p></span></font></p>

<div>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

</div>

<div>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'>1) why does this crash:<o:p></o:p></span></font></p>

</div>

<div>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

</div>

<div>

<div>

<p class=3DMsoNormal><b><font size=3D3 face=3D"Times New Roman"><span
style=3D'font-size:12.0pt;font-weight:bold'>#include =
&lt;stdio.h&gt;</span></font></b><o:p></o:p></p>

</div>

<div>

<p class=3DMsoNormal><b><font size=3D3 face=3D"Times New Roman"><span
style=3D'font-size:12.0pt;font-weight:bold'>int main =
()&nbsp;</span></font></b><o:p></o:p></p>

</div>

<div>

<p class=3DMsoNormal><b><font size=3D3 face=3D"Times New Roman"><span
style=3D'font-size:12.0pt;font-weight:bold'>{</span></font></b><o:p></o:p=
></p>

</div>

<div>

<p class=3DMsoNormal><b><font size=3D3 face=3D"Times New Roman"><span
style=3D'font-size:12.0pt;font-weight:bold'>&nbsp;&nbsp; &nbsp;char =
*x;</span></font></b><o:p></o:p></p>

</div>

<div>

<p class=3DMsoNormal><b><font size=3D3 face=3D"Times New Roman"><span
style=3D'font-size:12.0pt;font-weight:bold'>&nbsp;&nbsp; =
&nbsp;printf(&quot;Shall
we proceed [y/n]: &quot;);</span></font></b><o:p></o:p></p>

</div>

<div>

<p class=3DMsoNormal><b><font size=3D3 face=3D"Times New Roman"><span
style=3D'font-size:12.0pt;font-weight:bold'>&nbsp;&nbsp;
&nbsp;scanf(&quot;%s&quot;, x);</span></font></b><o:p></o:p></p>

</div>

<div>

<p class=3DMsoNormal><b><font size=3D3 face=3D"Times New Roman"><span
style=3D'font-size:12.0pt;font-weight:bold'>&nbsp;&nbsp; =
&nbsp;printf(&quot;\nThe
answer was:%s\n&quot;, x);</span></font></b><o:p></o:p></p>

</div>

<div>

<p class=3DMsoNormal><b><font size=3D3 face=3D"Times New Roman"><span
style=3D'font-size:12.0pt;font-weight:bold'>}</span></font></b><o:p></o:p=
></p>

</div>

<div>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

</div>

<div>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'>2) what is a typedef used for?<o:p></o:p></span></font></p>

</div>

<div>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'>3) what are function pointers useful =
for?<o:p></o:p></span></font></p>

</div>

<div>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

</div>

<div>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

</div>

<div>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'>sound good?<o:p></o:p></span></font></p>

</div>

<div>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

</div>

<div>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

</div>

<div>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'>Ian<o:p></o:p></span></font></p>

</div>

<div>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

</div>

<div>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

</div>

<div>

<div>

<div>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'>On Jan 28, 2008, at 2:55 PM, Brian DeForest =
wrote:<o:p></o:p></span></font></p>

</div>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<div style=3D'WORD-WRAP: break-word;webkit-nbsp-mode: =
space;webkit-line-break: after-white-space'>

<p class=3DMsoNormal><font size=3D2 color=3Dblue face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:blue'>Sounds good.&nbsp;&nbsp; The goal =
is not
to stump him, but to give him something solvable to verify he has good C
programming skills.</span></font><o:p></o:p></p>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<div class=3DMsoNormal align=3Dcenter style=3D'text-align:center'><font =
size=3D3
face=3D"Times New Roman"><span style=3D'font-size:12.0pt'>

<hr size=3D2 width=3D"100%" align=3Dcenter tabindex=3D-1>

</span></font></div>

<p class=3DMsoNormal style=3D'margin-bottom:12.0pt'><b><font size=3D2 =
face=3DTahoma><span
style=3D'font-size:10.0pt;font-family:Tahoma;font-weight:bold'>From:</spa=
n></font></b><font
size=3D2 face=3DTahoma><span =
style=3D'font-size:10.0pt;font-family:Tahoma'> Ian Brown
[<a =
href=3D"mailto:ian.brown@onstor.com">mailto:ian.brown@onstor.com</a>] =
<br>
<b><span style=3D'font-weight:bold'>Sent:</span></b> Monday, January 28, =
2008
2:46 PM<br>
<b><span style=3D'font-weight:bold'>To:</span></b> Brian DeForest<br>
<b><span style=3D'font-weight:bold'>Cc:</span></b> Amit Bothra; Andy =
Sharp;
Jonathan Goldick<br>
<b><span style=3D'font-weight:bold'>Subject:</span></b> Re: Jan Seidel
programming problem</span></font><o:p></o:p></p>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'>I can. <o:p></o:p></span></font></p>

<div>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<div>

<div>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'>On Jan 28, 2008, at 2:33 PM, Brian DeForest =
wrote:<o:p></o:p></span></font></p>

</div>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<div><!-- Converted from text/rtf format -->

<p><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial'>One
of us should give Jan an opportunity to write C code.&nbsp; Should be =
solvable
in a few minutes and involve pointers.&nbsp; =
</span></font><o:p></o:p></p>

<p><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial'>Probably
not a good use of Jonathan's time.&nbsp; </span></font><o:p></o:p></p>

<p><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial'>Bring
a pad of paper since there are no white boards.</span></font> =
<o:p></o:p></p>

<p><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial'>Volunteers?</span></font>
<o:p></o:p></p>

<p><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial'>Brian</span></font>
<o:p></o:p></p>

</div>

</div>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

</div>

</div>

</div>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

</div>

</div>

</div>

</body>

</html>

------_=_NextPart_001_01C86204.6BA1F1F7--
