Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Count to 10

Name: Anonymous 2010-06-17 15:14

Lets see if /prog/ can count to 10 in C. I'll start:

int main(void){

Name: Anonymous 2010-06-17 15:15

int i;

Name: Anonymous 2010-06-17 15:16

for (i = 1; i <= 10; ++i) printf("%d\n", i); return 0; }

Let's not import imageboard ``memes''. We have enough shit to deal with as it is.

Name: Anonymous 2010-06-17 15:16

for(i=0; i < 10; i++)

Name: Anonymous 2010-06-17 15:19

i++

Name: Anonymous 2010-06-17 15:19

>>4
Great, now it's a syntax error. Not that it would have gone far, with >>1 forgetting to #include <stdio.h> anyway.

Name: Anonymous 2010-06-17 15:20

#include <stdmeme.h>

Name: Anonymous 2010-06-17 15:20

>>4-5
C++ users haven't read their K&R.

Name: Anonymous 2010-06-17 15:21

return(0);

Name: Anonymous 2010-06-17 15:22

>>9
Good god. If that's how you write C, you need to stop.

Name: Anonymous 2010-06-17 15:24

strcpy(i[3], "Marshland");

Name: Anonymous 2010-06-17 15:25

>>11
THAT IS NOT A STRING!

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List