Home / C Programming / Input / Output :: Discussion

Discussion :: Input / Output

  1. What will be the output of the program ?

    #include 
     int main() 
     {   
         int a=250;  
         printf("\n", a);    
         return 0; 
     } 
    

  2. A.

    1250

    B.

    2

    C.

    50

    D.

    250

    View Answer

    Workspace

    Answer : Option D

    Explanation :

    int a=250; The variable a is declared as an integer type and initialized to value 250.

    printf("\n", a); It prints the value of variable a.

    Hence the output of the program is 250.


Be The First To Comment