<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Samuel's HQ &#187; Alphabet Interview</title>
	<atom:link href="http://samuel.happycoders.org/category/english/alphabet-interview/feed/" rel="self" type="application/rss+xml" />
	<link>http://samuel.happycoders.org</link>
	<description>A french/american blog with some hungarian spices...</description>
	<lastBuildDate>Sun, 27 Nov 2011 02:53:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>alphabet version 3</title>
		<link>http://samuel.happycoders.org/2007/05/19/alphabet-version-3/</link>
		<comments>http://samuel.happycoders.org/2007/05/19/alphabet-version-3/#comments</comments>
		<pubDate>Sat, 19 May 2007 17:32:50 +0000</pubDate>
		<dc:creator>samuel</dc:creator>
				<category><![CDATA[Alphabet Interview]]></category>
		<category><![CDATA[English]]></category>

		<guid isPermaLink="false">http://samuel.happycoders.org/2007/05/19/alphabet-version-3/</guid>
		<description><![CDATA[Third answer to my alphabet question:
#include &#60;stdio.h&#62;
&#160;
void main &#40;&#41;
&#123;
    char Array&#91;26&#93; = &#123; 'a', 'b', ... 'z'&#125;;
&#160;
    int i;
&#160;
    for &#40;i = 0; i &#60;= 26; i++&#41;
    &#123;
        printf&#40;%c\\n, *Array&#91;i&#93;&#41;;
    &#125;
    exit;
&#125;
&#160;
Download this code: alphabet_3.c
There is no typo in the transcript. What do  [...]]]></description>
			<content:encoded><![CDATA[<p>Third answer to my alphabet question:</p>
<pre class="c"><span style="color: #339933;">#include &lt;stdio.h&gt;</span>
&nbsp;
<span style="color: #993333;">void</span> main <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>
<span style="color: #66cc66;">&#123;</span>
    <span style="color: #993333;">char</span> Array<span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">26</span><span style="color: #66cc66;">&#93;</span> = <span style="color: #66cc66;">&#123;</span> <span style="color: #ff0000;">'a'</span>, <span style="color: #ff0000;">'b'</span>, ... <span style="color: #ff0000;">'z'</span><span style="color: #66cc66;">&#125;</span>;
&nbsp;
    <span style="color: #993333;">int</span> i;
&nbsp;
    <span style="color: #b1b100;">for</span> <span style="color: #66cc66;">&#40;</span>i = <span style="color: #cc66cc;">0</span>; i &lt;= <span style="color: #cc66cc;">26</span>; i++<span style="color: #66cc66;">&#41;</span>
    <span style="color: #66cc66;">&#123;</span>
        <a href="http://www.opengroup.org/onlinepubs/009695399/functions/printf.html"><span style="color: #000066;">printf</span></a><span style="color: #66cc66;">&#40;</span>%c\\n, *Array<span style="color: #66cc66;">&#91;</span>i<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span>;
    <span style="color: #66cc66;">&#125;</span>
    exit;
<span style="color: #66cc66;">&#125;</span>
&nbsp;</pre>
<p><strong>Download this code: </strong><a href="http://samuel.happycoders.org/code/alphabet_3.c">alphabet_3.c</a></p>
<p>There is no typo in the transcript. What do you think? Is my question &#8216;too hard&#8217;? Is it not &#8216;appropriate&#8217; for a &#8216;C&#8217; developer position?</p>
]]></content:encoded>
			<wfw:commentRss>http://samuel.happycoders.org/2007/05/19/alphabet-version-3/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>alphabet version 2</title>
		<link>http://samuel.happycoders.org/2007/05/18/alphabet-version-2/</link>
		<comments>http://samuel.happycoders.org/2007/05/18/alphabet-version-2/#comments</comments>
		<pubDate>Fri, 18 May 2007 15:34:25 +0000</pubDate>
		<dc:creator>samuel</dc:creator>
				<category><![CDATA[Alphabet Interview]]></category>
		<category><![CDATA[English]]></category>

		<guid isPermaLink="false">http://samuel.happycoders.org/2007/05/18/alphabet-version-2/</guid>
		<description><![CDATA[Second answer&#8230; again, there is no typo, this is the pure transcript of the candidate&#8217;s answer.
main&#40;argc, argv&#91;&#93;&#41;
&#123;
    int i = 0;
    char a&#91;26&#93; = &#123; 'a', 'b', 'c', ...'z'&#125;
&#160;
    for &#40;i = 0; i &#60;=26; i++&#41;
    &#123;
        printf&#40;&#34;%d/n&#34;, a&#91;i&#93;%&#41;;
    &#125;
    return;
&#125;
&#160;
Download this code:  [...]]]></description>
			<content:encoded><![CDATA[<p>Second answer&#8230; again, there is no typo, this is the pure transcript of the candidate&#8217;s answer.</p>
<pre class="c">main<span style="color: #66cc66;">&#40;</span>argc, argv<span style="color: #66cc66;">&#91;</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span>
<span style="color: #66cc66;">&#123;</span>
    <span style="color: #993333;">int</span> i = <span style="color: #cc66cc;">0</span>;
    <span style="color: #993333;">char</span> a<span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">26</span><span style="color: #66cc66;">&#93;</span> = <span style="color: #66cc66;">&#123;</span> <span style="color: #ff0000;">'a'</span>, <span style="color: #ff0000;">'b'</span>, <span style="color: #ff0000;">'c'</span>, ...<span style="color: #ff0000;">'z'</span><span style="color: #66cc66;">&#125;</span>
&nbsp;
    <span style="color: #b1b100;">for</span> <span style="color: #66cc66;">&#40;</span>i = <span style="color: #cc66cc;">0</span>; i &lt;=<span style="color: #cc66cc;">26</span>; i++<span style="color: #66cc66;">&#41;</span>
    <span style="color: #66cc66;">&#123;</span>
        <a href="http://www.opengroup.org/onlinepubs/009695399/functions/printf.html"><span style="color: #000066;">printf</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;%d/n&quot;</span>, a<span style="color: #66cc66;">&#91;</span>i<span style="color: #66cc66;">&#93;</span>%<span style="color: #66cc66;">&#41;</span>;
    <span style="color: #66cc66;">&#125;</span>
    <span style="color: #b1b100;">return</span>;
<span style="color: #66cc66;">&#125;</span>
&nbsp;</pre>
<p><strong>Download this code: </strong><a href="http://samuel.happycoders.org/code/alphabet_2.c">alphabet_2.c</a></p>
<p>With this question, I&#8217;m realizing that array usage in C, is clearly not clear for everyone.</p>
]]></content:encoded>
			<wfw:commentRss>http://samuel.happycoders.org/2007/05/18/alphabet-version-2/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>alphabet version 1</title>
		<link>http://samuel.happycoders.org/2007/05/17/alphabet-version-1/</link>
		<comments>http://samuel.happycoders.org/2007/05/17/alphabet-version-1/#comments</comments>
		<pubDate>Thu, 17 May 2007 16:32:09 +0000</pubDate>
		<dc:creator>samuel</dc:creator>
				<category><![CDATA[Alphabet Interview]]></category>
		<category><![CDATA[English]]></category>

		<guid isPermaLink="false">http://samuel.happycoders.org/2007/05/17/alphabet-version-1/</guid>
		<description><![CDATA[First answer to my alphabet question:
void printAlphabet&#40;void&#41;
&#123;
    char a&#91;21&#93;;
&#160;
    for &#40;i = 0; i &#60;26; i++&#41;
    &#123;
        if &#40;i == 0&#41;
        &#123;
            a&#91;i&#93; = 'a';
        &#125;
        else
        &#123;
            a&#91;i&#93; = a&#91;i - 1&#93;++;
        &#125;
    &#125;
    a&#91;26&#93; = '\\0';
    printf&#40;&#34;alphabet %s\\n&#34;,  [...]]]></description>
			<content:encoded><![CDATA[<p>First answer to my <a href="http://samuel.happycoders.org/2007/04/18/my-alphabet-question-for-interview/" target="_blank">alphabet question</a>:</p>
<pre class="c"><span style="color: #993333;">void</span> printAlphabet<span style="color: #66cc66;">&#40;</span><span style="color: #993333;">void</span><span style="color: #66cc66;">&#41;</span>
<span style="color: #66cc66;">&#123;</span>
    <span style="color: #993333;">char</span> a<span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">21</span><span style="color: #66cc66;">&#93;</span>;
&nbsp;
    <span style="color: #b1b100;">for</span> <span style="color: #66cc66;">&#40;</span>i = <span style="color: #cc66cc;">0</span>; i &lt;<span style="color: #cc66cc;">26</span>; i++<span style="color: #66cc66;">&#41;</span>
    <span style="color: #66cc66;">&#123;</span>
        <span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span>i == <span style="color: #cc66cc;">0</span><span style="color: #66cc66;">&#41;</span>
        <span style="color: #66cc66;">&#123;</span>
            a<span style="color: #66cc66;">&#91;</span>i<span style="color: #66cc66;">&#93;</span> = <span style="color: #ff0000;">'a'</span>;
        <span style="color: #66cc66;">&#125;</span>
        <span style="color: #b1b100;">else</span>
        <span style="color: #66cc66;">&#123;</span>
            a<span style="color: #66cc66;">&#91;</span>i<span style="color: #66cc66;">&#93;</span> = a<span style="color: #66cc66;">&#91;</span>i - <span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#93;</span>++;
        <span style="color: #66cc66;">&#125;</span>
    <span style="color: #66cc66;">&#125;</span>
    a<span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">26</span><span style="color: #66cc66;">&#93;</span> = <span style="color: #ff0000;">'<span style="color: #000099; font-weight: bold;">\\0</span>'</span>;
    <a href="http://www.opengroup.org/onlinepubs/009695399/functions/printf.html"><span style="color: #000066;">printf</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;alphabet %s<span style="color: #000099; font-weight: bold;">\\n</span>&quot;</span>, a<span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span>
&nbsp;</pre>
<p><strong>Download this code: </strong><a href="http://samuel.happycoders.org/code/alphabet_1.c">alphabet_1.c</a></p>
<p>This might print the alphabet&#8230; but it will crash&#8230; I recopy the program as is&#8230; there is no typo from my side.</p>
<p>After this question, I asked more questions on how to use array in C. This person was terribly  confused on how to use array in C.</p>
]]></content:encoded>
			<wfw:commentRss>http://samuel.happycoders.org/2007/05/17/alphabet-version-1/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>My Alphabet question for interview</title>
		<link>http://samuel.happycoders.org/2007/04/18/my-alphabet-question-for-interview/</link>
		<comments>http://samuel.happycoders.org/2007/04/18/my-alphabet-question-for-interview/#comments</comments>
		<pubDate>Tue, 17 Apr 2007 23:01:08 +0000</pubDate>
		<dc:creator>samuel</dc:creator>
				<category><![CDATA[Alphabet Interview]]></category>
		<category><![CDATA[English]]></category>
		<category><![CDATA[geeky]]></category>

		<guid isPermaLink="false">http://samuel.happycoders.org/2007/04/18/my-alphabet-question-for-interview/</guid>
		<description><![CDATA[Part of my job is to sometimes give interviews for people we want to hire. One of my favorite question is to ask the person to write a problem that will print the alphabet on the console.  So let&#8217;s say I have a c file my_program.c, I want to be able to compile it, execute, and get the alphabet on  [...]]]></description>
			<content:encoded><![CDATA[<p>Part of my job is to sometimes give interviews for people we want to hire. One of my favorite question is to ask the person to write a problem that will print the alphabet on the console.  So let&#8217;s say I have a c file my_program.c, I want to be able to compile it, execute, and get the alphabet on the console. Something like: <code>$./my_program<br />
a<br />
b<br />
c<br />
...<br />
z<br />
</code><br />
I really like this question as I think it&#8217;s easy enough to know if the person is able to write a simple program in C. I will post here the several code I got&#8230; and sometimes it&#8217;s really surprising.</p>
<p>What do you think about the question? Do you think it&#8217;s a dumb question? Is it too hard/easy?</p>
]]></content:encoded>
			<wfw:commentRss>http://samuel.happycoders.org/2007/04/18/my-alphabet-question-for-interview/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

