Home / C Programming / Control Structures :: Discussion

Discussion :: Control Structures

  1. What will be the output of the given program?

    #include<stdio.h>

    void main()

    {

    int value=0;

    if(value)

    printf("well done ");

    printf("examveda");

    }

  2. A.

     well done examveda

    B.

     examveda

    C.

     complier error

    D.

     None of these

    View Answer

    Workspace

    Answer : Option B

    Explanation :

    As the value of variable value is zero so, it evaluates to false in the if condition.


Be The First To Comment