When I follow that link I see #include I do note that it is now an image where as before it was text I could copy and paste. On 6 June 2013 02:05, Mike snyder wrote: > Where did you see the include ? > > going to http://circuitcellar.com/cc-weekly-code-challenge/ does not sho= w > the stdio.h? > > > On Tue, Jun 4, 2013 at 12:06 PM, Justin Richards > wrote: > > > Circuit Cellar have a code challenge that asks contestants to > > determine the error in the code below. > > > > > > I like a challenge but I am not too familiar with c but it seems that > > there are several areas that look odd in the code. The contest seems > > to imply that there is only one error so I suspect I am wrong. > > > > > > I get ... > > > > Line 5. Declares a variable that is never used (not sure if that is an > > error per se) > > > > Line 8. Should be i++ not ++i > > > > Line 9. '%s' not sure what effect the single quotes have but they look > > wrong > > > > Line 9. *argv[i] should be argv[i] > > > > Line 10.1. perhaps a "return" in the function main since it is declared > as > > int. > > > > > > > > 1. #include > > 2. > > 3. int main (int argc, char *argv[])4. { > > 5. char ch; > > 6. int i; > > 7. > > 8. for (i =3D 0; i < argc; ++i) { > > 9. printf ("Argument #%d: '%s'\n", i, *argv[i]); > > 10. }11. } > > > > > > Justin > > -- > > http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive > > View/change your membership options at > > http://mailman.mit.edu/mailman/listinfo/piclist > > > -- > http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist > --=20 http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .