int main/void question

This is a discussion on int main/void question within the C++ Programming forums, part of the General Programming Boards category; what is the difference between Code: int main() { } and void main() { } thank you...

  1. #1
    Registered User
    Join Date
    May 2007
    Posts
    2

    int main/void question

    what is the difference between
    Code:
    int main()
    
    {
    }
    
    and
    
    void main()
    {
    }
    thank you

  2. #2
    Just Lurking Dave_Sinkula's Avatar
    Join Date
    Oct 2002
    Posts
    5,006
    Quote Originally Posted by C++weeeeeeeeeee View Post
    what is the difference between
    One FAQ.

    *rimshot*
    7. It is easier to write an incorrect program than understand a correct one.
    40. There are two ways to write error-free programs; only the third one works.*

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 48
    Last Post: 09-26-2008, 03:45 AM
  2. Replies: 8
    Last Post: 03-10-2008, 11:57 AM
  3. Game Won't Compile
    By jothesmo in forum C++ Programming
    Replies: 2
    Last Post: 04-01-2006, 03:24 PM
  4. Half-life SDK, where are the constants?
    By bennyandthejets in forum Game Programming
    Replies: 29
    Last Post: 08-25-2003, 11:58 AM
  5. How do you search & sort an array?
    By sketchit in forum C Programming
    Replies: 30
    Last Post: 11-03-2001, 04:26 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21