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

Conditional compilation

Conditional compilation: In computer programming, Conditional compilation. refers to a method which allows the compiler to produce slight differences in a program depending ...

Advantages of Files

Advantages Of Files: 1.    The main memory of the computer is small in capacity and volatile in nature. So, data cann...

What are the Differences Between Call by Value and Call by Reference?

CALL BY VALUE CALL BY REFERENCE   A) Formal parameters is local variable.   A) Formal parameter is local reference   B) It ...

Post a Comment

emo-but-icon
:noprob:
:smile:
:shy:
:trope:
:sneered:
:happy:
:escort:
:rapt:
:love:
:heart:
:angry:
:hate:
:sad:
:sigh:
:disappointed:
:cry:
:fear:
:surprise:
:unbelieve:
:shit:
:like:
:dislike:
:clap:
:cuff:
:fist:
:ok:
:file:
:link:
:place:
:contact:

item