C - Control Statements - Discussion

You Are Here :: Home > C > Control Statements - Discussion

 



Q.

What will be output when you will execute following c code?

#include
void main(){
int a=5,b=10;
if(++a||++b)
printf("%d %d",a,b);
else
printf("shalini");
}
Choose all that apply:

A. 5 10 B. shalini
C. 6 10 D. error

Answer: Option C
Explaination:

 


No Explanation



Discussion

Your Comments Goes here...
NameDiscussion