X-MimeOLE: Produced By Microsoft Exchange V6.5
Received: by onstor-exch02.onstor.net 
	id <01C86206.3B40719B@onstor-exch02.onstor.net>; Mon, 28 Jan 2008 16:33:48 -0700
MIME-Version: 1.0
Content-Type: multipart/alternative;
	boundary="----_=_NextPart_001_01C86206.3B40719B"
Content-class: urn:content-classes:message
Subject: RE: Jan Seidel programming problem
Date: Mon, 28 Jan 2008 16:33:47 -0700
Message-ID: <BB375AF679D4A34E9CA8DFA650E2B04E07FB509D@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: AchiBCQ6FeBa4dLDTz64PdjdJ3RMNgAAb03w
References: <BB375AF679D4A34E9CA8DFA650E2B04E07FB4FC9@onstor-exch02.onstor.net> <27D77517-3763-475E-91B6-74EC7C84D03D@onstor.com> <BB375AF679D4A34E9CA8DFA650E2B04E07FB5004@onstor-exch02.onstor.net> <9466D7F3-81BB-420F-B34B-A931124EE55B@onstor.com>
From: "Brian DeForest" <brian.deforest@onstor.com>
To: "Ian Brown" <ian.brown@onstor.com>
Cc: "Amit Bothra" <amit.bothra@onstor.com>,
	"Andy Sharp" <andy.sharp@onstor.com>,
	"Jonathan Goldick" <jonathan.goldick@onstor.com>

This is a multi-part message in MIME format.

------_=_NextPart_001_01C86206.3B40719B
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

I was thinking of asking him to write code, something like an in-line
string reversal function w/o allocating memory, solvable in a couple
minutes.  Your questions are ok, but don't require writing code. =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


here's what I'll ask him:=20

1) why does this crash:

#include <stdio.h>
int main ()=20
{
    char *x;
    printf("Shall we proceed [y/n]: ");
    scanf("%s", x);
    printf("\nThe answer was:%s\n", x);
}

2) what is a typedef used for?
3) what are function pointers useful for?


sound good?


Ian


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

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

________________________________

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

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


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




------_=_NextPart_001_01C86206.3B40719B
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii">
<META content=3D"MSHTML 6.00.2900.3020" name=3DGENERATOR></HEAD>
<BODY=20
style=3D"WORD-WRAP: break-word; webkit-nbsp-mode: space; =
webkit-line-break: after-white-space">
<DIV dir=3Dltr align=3Dleft><FONT face=3DArial color=3D#0000ff =
size=3D2><SPAN=20
class=3D354183123-28012008>I was thinking of asking him to write code, =
something=20
like an in-line&nbsp;string reversal function w/o allocating memory, =
solvable in=20
a couple minutes.&nbsp; Your questions are ok, but don't require writing =

code.&nbsp; </SPAN></FONT></DIV><BR>
<DIV class=3DOutlookMessageHeader lang=3Den-us dir=3Dltr align=3Dleft>
<HR tabIndex=3D-1>
<FONT face=3DTahoma size=3D2><B>From:</B> Ian Brown =
[mailto:ian.brown@onstor.com]=20
<BR><B>Sent:</B> Monday, January 28, 2008 3:19 PM<BR><B>To:</B> Brian=20
DeForest<BR><B>Cc:</B> Amit Bothra; Andy Sharp; Jonathan=20
Goldick<BR><B>Subject:</B> Re: Jan Seidel programming=20
problem<BR></FONT><BR></DIV>
<DIV></DIV>here's what I'll ask him:
<DIV><BR class=3Dwebkit-block-placeholder></DIV>
<DIV>1) why does this crash:</DIV>
<DIV><BR class=3Dwebkit-block-placeholder></DIV>
<DIV>
<DIV><B>#include &lt;stdio.h&gt;</B></DIV>
<DIV><B>int main ()&nbsp;</B></DIV>
<DIV><B>{</B></DIV>
<DIV><B>&nbsp;&nbsp; &nbsp;char *x;</B></DIV>
<DIV><B>&nbsp;&nbsp; &nbsp;printf("Shall we proceed [y/n]: ");</B></DIV>
<DIV><B>&nbsp;&nbsp; &nbsp;scanf("%s", x);</B></DIV>
<DIV><B>&nbsp;&nbsp; &nbsp;printf("\nThe answer was:%s\n", x);</B></DIV>
<DIV><B>}</B></DIV>
<DIV><BR class=3Dwebkit-block-placeholder></DIV>
<DIV>2) what is a typedef used for?</DIV>
<DIV>3) what are function pointers useful for?</DIV>
<DIV><BR class=3Dwebkit-block-placeholder></DIV>
<DIV><BR class=3Dwebkit-block-placeholder></DIV>
<DIV>sound good?</DIV>
<DIV><BR class=3Dwebkit-block-placeholder></DIV>
<DIV><BR class=3Dwebkit-block-placeholder></DIV>
<DIV>Ian</DIV>
<DIV><BR class=3Dwebkit-block-placeholder></DIV>
<DIV><BR class=3Dwebkit-block-placeholder></DIV>
<DIV>
<DIV>
<DIV>On Jan 28, 2008, at 2:55 PM, Brian DeForest wrote:</DIV><BR=20
class=3DApple-interchange-newline>
<DIV=20
style=3D"WORD-WRAP: break-word; webkit-nbsp-mode: space; =
webkit-line-break: after-white-space">
<DIV dir=3Dltr align=3Dleft><SPAN class=3D650145422-28012008><FONT =
face=3DArial=20
color=3D#0000ff size=3D2>Sounds good.&nbsp;&nbsp; The goal is not to =
stump him, but=20
to give him something solvable to verify he has good C programming=20
skills.</FONT></SPAN></DIV><BR>
<DIV class=3DOutlookMessageHeader lang=3Den-us dir=3Dltr align=3Dleft>
<HR tabIndex=3D-1>
<FONT face=3DTahoma size=3D2><B>From:</B> Ian Brown [<A=20
href=3D"mailto:ian.brown@onstor.com">mailto:ian.brown@onstor.com</A>]=20
<BR><B>Sent:</B> Monday, January 28, 2008 2:46 PM<BR><B>To:</B> Brian=20
DeForest<BR><B>Cc:</B> Amit Bothra; Andy Sharp; Jonathan=20
Goldick<BR><B>Subject:</B> Re: Jan Seidel programming=20
problem<BR></FONT><BR></DIV>
<DIV></DIV>I can.=20
<DIV><BR>
<DIV>
<DIV>On Jan 28, 2008, at 2:33 PM, Brian DeForest wrote:</DIV><BR=20
class=3DApple-interchange-newline>
<DIV><!-- Converted from text/rtf format -->
<P><FONT face=3DArial size=3D2>One of us should give Jan an opportunity =
to write C=20
code.&nbsp; Should be solvable in a few minutes and involve =
pointers.&nbsp;=20
</FONT></P>
<P><FONT face=3DArial size=3D2>Probably not a good use of Jonathan's =
time.&nbsp;=20
</FONT></P>
<P><FONT face=3DArial size=3D2>Bring a pad of paper since there are no =
white=20
boards.</FONT> </P>
<P><FONT face=3DArial size=3D2>Volunteers?</FONT> </P>
<P><FONT face=3DArial size=3D2>Brian</FONT>=20
</P></DIV></DIV><BR></DIV></DIV></DIV><BR></DIV></DIV></BODY></HTML>

------_=_NextPart_001_01C86206.3B40719B--
