Question:What will be output when you will execute following c code?
#include<stdio.h>
void main(){
    if("ABC") printf("Barack Obama\n");
    if(-1)    printf("Hu Jintao\n");
    if(.92L)  printf("Nicolas Sarkozy\n");
    if(0)     printf("Ben Bernanke\n");
    if('W')   printf("Vladimir Putin\n");
}
 

A It will print nothing 

B Barack Obama Hu Jintao Nicolas Sarkozy Vladimir Putin 

C Barack Obama Hu Jintao Nicolas Sarkozy Ben Bernanke Vladimir Putin 

D Hu Jintao Nicolas Sarkozy Vladimir Putin 

E Compilation error 

+ Answer
+ Explanation
+ Report
Total Preview: 1505

Copyright © 2024. Powered by Intellect Software Ltd