MAIN FUNCTION!!!!

MAIN FUNCTION!!!!

  1. All C language programs must have a main() function. It's the core of every program.
  2. It is like a captain of an entire ship passing orders to the compiler.
  3. We must always remember in C language anything with ( ) is a function*.
  4. Without a main function a program can never get executed.
  5. A main function is what the compiler looks for during the time of compilation.                                                                                                                                                                                                                                                                                                                                                                               SYNTAX:   int main ( ) or void main ( )   NOTE- In int main, the compiler has to return a value, so for the time being just remember that at the                               end always type return 0 .                                         

No comments:

Post a Comment