Question:What will be output when you will execute following c code?
#include<stdio.h>
void main(){
    int x=-1,y=-1;
    if(++x=++y)
         printf("R.T. Ponting");
    else
         printf("C.H. Gayle");
}
 

A R.T Ponting 

B C.H. Gayle 

C Warning: x and y are assigned a value that is never used 

D Warning: Condition is always true 

E Compilation error 

+ Answer
+ Explanation
+ Report
Total Preview: 1035

Copyright © 2024. Powered by Intellect Software Ltd