int main(...)

507 7 0
                                    

Once you have all the includes at the beginning you will need int main(void) or in harder code: int main(argc, int argv).
The second one is for programmers that want to get inputs before the program runs. The "int main(void)" means something to the program. Int means it has code in the program, because all the computer can understand is 1 and 0 so the int changes the words in the program to 1s or 0s. Main is there as a place holder for what ever is in the code. Void means that the code will not take any thing other then the compiling and making of the code.
Ex.)
make hello
./hello
If you put "./hello world" there will be error codes left and rights saying that you will need "argc, int argv"

Programming language "C"Wo Geschichten leben. Entdecke jetzt