Thread: what is the purpose of return(0)?

  1. #1
    Registered User
    Join Date
    Sep 2005
    Posts
    142

    what is the purpose of return(0)?

    please?

  2. #2
    Registered User
    Join Date
    Aug 2005
    Posts
    1,267
    as used in function main() it returns a value to the operating system and can be used by calling programs. Historically, 0 means successful completion of the program (no errors), while other return values are an error number -- the program is free to use whatever number (positive or negative) it whishes.

  3. #3
    Registered User
    Join Date
    Aug 2005
    Location
    Austria
    Posts
    1,990
    To return 0 ?

  4. #4
    & the hat of GPL slaying Thantos's Avatar
    Join Date
    Sep 2001
    Posts
    5,681
    http://cboard.cprogramming.com/search.php

    Getting tired of you not searching

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. State Manager
    By Dark_Phoenix in forum Game Programming
    Replies: 1
    Last Post: 03-25-2007, 09:18 AM
  2. Cannot find error
    By rwmarsh in forum Game Programming
    Replies: 6
    Last Post: 09-20-2006, 06:48 AM
  3. Purpose of Operator Overloading
    By xmltorrent in forum C++ Programming
    Replies: 11
    Last Post: 08-09-2006, 06:23 PM
  4. My purpose, what do I do?
    By jaylc185 in forum Game Programming
    Replies: 5
    Last Post: 05-25-2005, 10:15 AM
  5. Contest Results - May 27, 2002
    By ygfperson in forum A Brief History of Cprogramming.com
    Replies: 18
    Last Post: 06-18-2002, 01:27 PM