This was asked today in my interview and I was not having any clue. Any pointer would be helpful.
main() is the entry point as far as C is concerned. The loader sets the main()'s address as the contents of the program counter once the loading is complete and the state of the program changes from "loading" to "running"
You may want to check https://en.wikipedia.org/wiki/Entry_point#C_and_C.2B.2B
Does there exist any way to make the command line arguments available to other functions without passing them as arguments to the function in C programming?
If I correct , by default main () function has integer return type. I want to know what happens in the system internally when its return type gets changed from integer to void ?
We have two types of main declaration i.e.
void main() and int main()
I want to know the difference between these two and when to use what?