Difference between int main and void main

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ghie
    New Member
    • Dec 2007
    • 1

    #1

    Difference between int main and void main

    what is the diffirence between int and void main,...?and what are the rule of <stdio.h>,<coni o.h> in making the program...?
  • rameshrd
    New Member
    • Dec 2007
    • 2

    #2
    pls read this and reply me............



    The C and C++ standards differ when it comes to main(), so I'll detail each one separately.

    text removed because of copyright.

    Comment

    • oler1s
      Recognized Expert Contributor
      • Aug 2007
      • 671

      #3
      Shame. You copy pasted from http://www.cprogramming.com/faq/cgi-...wer=1044841143. It's bad that you copy pasted large amounts of text from another site. As for not even naming the source, and that you quoted verbatim...well , that says a lot about you.

      Comment

      • weaknessforcats
        Recognized Expert Expert
        • Mar 2007
        • 9214

        #4
        main() returns an int.

        void main() is a non-standard Microsoft doo-dah which they have been trying to erase ever since they did it.

        Comment

        Working...