Question:What will be output when you will execute following c code?
#define True 5==5
#include<stdio.h>
void main(){
    if(.001-0.1f)
         printf("David Beckham");
    else if(True)
         printf("Ronaldinho");
    else
        printf("Cristiano Ronaldo");
}
 

A David Beckham 

B Ronaldinho 

C Cristiano Ronaldo 

D Warning: Condition is always true 

E Warning: Unreachable code 

+ Answer
+ Explanation
+ Report
Total Preview: 2516

Copyright © 2024. Powered by Intellect Software Ltd