What is the correct value to return to the operating system upon the successful completion of a program?

A. 1

B. -1

C. 0

D. Program do no return a value.

E. 2

Answer: Option C

Join The Discussion

Comments ( 10 )

  1. Vivesh Singh
    Vivesh Singh :
    2 years ago

    what if I use Void main?

  2. M Talha
    M Talha :
    3 years ago

    why zero

  3. Pratik Shete
    Pratik Shete :
    4 years ago

    thanks shaaf

  4. Shaaf Hassan
    Shaaf Hassan :
    4 years ago

    C Programming return 0
    In C and C++ programs the main function is of type int and therefore it should return an integer value. The return value of the main function is considered the "Exit Status" of the application. On most operating systems returning 0 is a success status like saying "The program worked fine"

    4 years ago

    How it is zero.?? Can anyone explain this...

  6. Jaydip Phopse
    Jaydip Phopse :
    4 years ago

    plese give explination how it is happen?i think program do not retun a value in c programing.

  7. Klsa Sathish
    Klsa Sathish :
    4 years ago


  8. Dhiraj Chandanshive
    Dhiraj Chandanshive :
    4 years ago

    return value is not using in c

  9. Pranay Jadhav
    Pranay Jadhav :
    4 years ago


  10. Shyama Sundar
    Shyama Sundar :
    5 years ago

    option B

Related Questions on C Fundamentals