История изменений
Исправление slackwarrior, (текущая версия) :
void main(int argc, char** argv)
эквипенисуально
void main(int argc, char* argv[])
ну и про указатели/массивы как параметры http://c-faq.com/aryptr/aryptrparam.html...
Since arrays decay immediately into pointers, an array is never actually passed to a function. You can pretend that a function receives an array as a parameter, and illustrate it by declaring the corresponding parameter as an array:
void f(char a[]) { ... }
Interpreted literally, this declaration would have no use, so the compiler turns around and pretends that you'd written a pointer declaration, since that's what the function will in fact receive:
void f(char *a) { ... }
Тоже монофаллично :)
Исходная версия slackwarrior, :
void main(int argc, char** argv)
эквипенисуально
void main(int argc, char* argv[])
ну и про указатели http://c-faq.com/aryptr/aryptrparam.html...
Since arrays decay immediately into pointers, an array is never actually passed to a function. You can pretend that a function receives an array as a parameter, and illustrate it by declaring the corresponding parameter as an array:
void f(char a[]) { ... }
Interpreted literally, this declaration would have no use, so the compiler turns around and pretends that you'd written a pointer declaration, since that's what the function will in fact receive:
void f(char *a) { ... }
Тоже монофаллично :)