Write few Lines about main() in C?

Main  is a user defined function. It is the staring address of every program. C permits different forms of main() statements. following forms are allowed.

  • Main (  )   {- - - - - - -}
  • Int main (  )
  • Void main  (   ) 
  • Main (void)
  • Void main (void)
  • Int main (void)

® The empty pair of parentheses indicates that the function has no arguments.

® The keyword void means that the function does not return any information to the    operating system.

® Int means that the function returns an integer value to the operating system.
    When int is specified, the last statement in the program must be return.

Related

C Language 5368023290545306814

Post a Comment

emo-but-icon

item