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

Prototying main

Name: Anonymous 2012-01-12 15:38


#include <stdio.h>

int main ();

int main()
{
  printf ("%s\n", "Hello World");

  return 0;
}


Prototyping main ftw.

Name: Anonymous 2012-01-12 15:57

>>6
That's incorrect you idiot. func1() one gets *both declared and defined*. Now why don't you just shut the fuck up and read one of the standards.

Name: Anonymous 2012-01-12 16:00

Even gcc.c on GCC prototypes main.

Never call main, it's stupid, but prototype it, because it's cool. It's what the cool guys do.

Name: Anonymous 2012-01-12 16:03

Prototype my dubs

Name: Anonymous 2012-01-12 16:09

>>9
Its undefined. Read the standard.

Name: Anonymous 2012-01-12 16:12

>>12
func1() is *above* main().

Name: Anonymous 2012-01-12 16:16

>>13
Go back to /g/ you ignorant.

Name: Anonymous 2012-01-12 16:17

>>13
read
>>8
he declared main (although it is wrong) before func1.

Name: Anonymous 2012-01-12 16:20

>>15
I was referring to func1(). Not main().

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