I know that the Main method can either return an int or be void. if I use the following Main method signature and run some sort of a code the command-line says "exited with code 0"
static void Main() {}
if I use the following signature:
static int Main() {
//and let's say return a 5
return 5;
}
It says "exited with code 5"
So my question is:
why does a void signature return a 0 if It is supposed to be void?