hi,
iam having a doubt in program execution.
main itself is executed first or is anything executed first before main.
could anybody please tell me.
hi,
iam having a doubt in program execution.
main itself is executed first or is anything executed first before main.
could anybody please tell me.
main() is the first thing executed in your program. Whatever happens before main() is native and specific to the system. Mainly it starts your program, initializes whatever needs to be initialized, and then eventually calls main(). You don't need to worry about these details usually.
main is the first code that you write that is run first. but there may be startup code made by the compiler that gets run before main runs.
thank you for reply