int main(int argc, char* argv[])
or
int main(int argc, char** argv)
int main(int argc, char* argv[])
or
int main(int argc, char** argv)
Other urls found in this thread:
Same thing really
first one
char **argv
it doesn't matter though, [] is syntactic sugar for one pointer dereference aka *
i bet you think argv has to be called that
stop making bikeshed threads and go program
in fact delete this fucking thread
way to answer the question numbnuts
this
fucking trannies
yeah brah bikeshed brah
if I knew where you lived I'd love you so much
I'd love you so bad
I write it like this:
int main(int argc, char *argv[])
void main()
Neither. C is a useless waste of time these days.
that guy probably sucks as an athlete
int main(int argc, char *argv[argc])
Neither -- your framework will provide the entry point.
int main(int argc, char **argv)
Array parameters do not exist and you should not pretend that they do.
void
main(int argc, char *argv[])
{
}
it places
the lotion
in the basket
or it gets
the hose
again [] ;;
So much insecurity on display in so few words
its the basic signature for fucking main in any language...
Array parameters were a mistake. They make you think that you can do sizeof on them, but you cant. You can only do sizeof on array variables. That's why arrays should never be used as parameters in C.
public static void main(String... args)
First for C++, second for C.