To: grunt03
Post that code over on comp.lang.c and watch the pedants pick it apart! :-)
#include
#include
int main(void)
{
const char s[] = Goodbye World!;
(void)puts(s);
return EXIT_SUCCESS;
}
I'll admit that I cheated. I ran lint(1) on it. Heh, heh, heh.
31 posted on
10/13/2011 10:19:14 PM PDT by
re_nortex
(DP...that's what I like about Texas.)
To: re_nortex
Whoops! The above code was botched since the PRE tag yanked the include directive symbols when I cut and pasted it from my xterm.
#include <stdio.h>
#include <stdlib.h>
I'm an idiot since I didn't catch it in the preview pane. Off to bed for me and no Ovaltine tonight.
33 posted on
10/13/2011 10:24:25 PM PDT by
re_nortex
(DP...that's what I like about Texas.)
To: re_nortex
Post that code over on comp.lang.c and watch the pedants pick it apart! :-) Yeah, they probably would, but if any of them had learned C by reading K&R they'd catch the meaning.
39 posted on
10/13/2011 10:35:56 PM PDT by
grunt03
(live free or die)
To: re_nortex
>> const char s[] = Goodbye World!;
const char s[] = “Goodbye, World!”;
76 posted on
10/14/2011 12:26:49 AM PDT by
Gene Eric
(Save a pretzel for the gas jet.)
FreeRepublic.com is powered by software copyright 2000-2008 John Robinson