1

What's the difference between this declaration:

void 
main(argc, argv)
int argc;
char **argv;
{
    // ...
}

from this?

void 
main(int argc, char **argv)
{
    // ...
}

Thanks for answers.

Victor Martins
  • 739
  • 7
  • 21

1 Answers1

2

Its a different notation style that was used in C at its beginning called the KR Notation (for Kernighan and Ritchie, C's designers). The well known C notation style that is used today follows the ANSI standard.

Here's link to a Wikipedia article describing the KR notation : http://en.wikipedia.org/wiki/K%26R_C#K.26R_C

slaadvak
  • 4,611
  • 1
  • 24
  • 34