difference betwn return 0 & return 1.

Discussion in 'C' started by rina, Aug 20, 2011.

  1. rina

    rina New Member

    Joined:
    Aug 20, 2011
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    wat is d difference betwn return 0 & return 1?plz explain in detail.
     
  2. imported_Isa

    imported_Isa New Member

    Joined:
    Sep 1, 2010
    Messages:
    24
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    Bachelor
    Location:
    shahi(search in fb)
    when you call a function like f(x) , the value that we give to function "x" have changed in what we program , to a new value that we called "f(x)" or "y" for example , or any thing else.
    it not different what return , its important what we need .
    in an if (condition) , if the condition be one its true and if condition was zero its false .
     
  3. gpk kishore

    gpk kishore New Member

    Joined:
    Jun 30, 2011
    Messages:
    82
    Likes Received:
    0
    Trophy Points:
    0
    really good question "rina"
    Many operating systems test the return value.
    The normal convention is that an exit value of zero means the program ran successfully,while a non zero value means there is a problem.The use of return 0 will
    indicate that program was successfully executed
     
  4. NewsBot

    NewsBot New Member

    Joined:
    Dec 2, 2008
    Messages:
    1,267
    Likes Received:
    2
    Trophy Points:
    0
    Not successfully executed but successfully terminated.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice