Home / C Programming / Control Instructions :: Discussion

Discussion :: Control Instructions

  1. What will be the output of the program?

     #include
     int main() 
     {   
         int k, num = 30; 
         k = (num 10) ? 100 : 200;       
         printf("%d\n", num); 
         return 0; 
     } 
    

  2. A.

    200

    B.

    30

    C.

    100

    D.

    500

    View Answer

    Workspace

    Answer : Option B

    Explanation :

    No answer description available for this question.


Be The First To Comment