1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Difference between main and void main

Discussion in 'C++' started by techinspiration, Feb 15, 2010.

  1. techinspiration

    techinspiration New Member

    Joined:
    Feb 14, 2010
    Messages:
    54
    Likes Received:
    0
    Trophy Points:
    0
    What is the difference between
    amd
     
  2. pankaj.sea

    pankaj.sea New Member

    Joined:
    Apr 6, 2009
    Messages:
    461
    Likes Received:
    13
    Trophy Points:
    0
    Occupation:
    Web Developer
    Location:
    Kolkata
    Home Page:
    Code:
    main()
    means the return type of the function "main" is "int" (by default).
    Code:
    void main()
    means the function "main" returns void .. it doesn't return a value basically.
     
  3. techinspiration

    techinspiration New Member

    Joined:
    Feb 14, 2010
    Messages:
    54
    Likes Received:
    0
    Trophy Points:
    0
    Thank you pankaj!
    ;)
     

Share This Page