Main Function in my thought

In C, program execution starts from the main() function. Every C program must contain a main() function. The main function may contain any number of statements. These statements are executed sequentially in the order which they are written.

The main function can in-turn call other functions. When main calls a function, it passes the execution control to that function. The function returns control to main when a return statement is executed or when end of function is reached.

2 Likes

Perfect. Welcome to the course. I hope you enjoy it.

Nice, i just started the unreal course …really looking forward to it.

1 Like

Privacy & Terms