Examveda
Examveda

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


This Question Belongs to C Program >> C Fundamentals

Join The Discussion

Comments ( 12 )

  1. Aftar Khan
    Aftar Khan :
    2 years ago

    Zero is by default which returns the program or terminates the program

  2. Vihan Singh
    Vihan Singh :
    2 years ago

    IN TRUE IT GIVE ONE IN FALSE IT GIVE 0 SO HOW IT POSSIBLE

  3. Vivesh Singh
    Vivesh Singh :
    5 years ago

    what if I use Void main?

  4. M Talha
    M Talha :
    5 years ago

    why zero

  5. Pratik Shete
    Pratik Shete :
    6 years ago

    thanks shaaf

  6. Shaaf Hassan
    Shaaf Hassan :
    6 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"

  7. AMBATI MALLIKARJUNA
    AMBATI MALLIKARJUNA :
    6 years ago

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

  8. Jaydip Phopse
    Jaydip Phopse :
    6 years ago

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

  9. Klsa Sathish
    Klsa Sathish :
    6 years ago

    how??

  10. Dhiraj Chandanshive
    Dhiraj Chandanshive :
    7 years ago

    return value is not using in c

  11. Pranay Jadhav
    Pranay Jadhav :
    7 years ago

    how?

  12. Shyama Sundar
    Shyama Sundar :
    7 years ago

    option B

Related Questions on C Fundamentals