(adsbygoogle = window.adsbygoogle || []).push({});
- What will be the output of following code :
int x = 0;
int main(){
if(x == x)
printf(“if”);
else
printf(“else”);
return 0;
}
A. Two same variables can not be compared
B. ifelse
C. else
D. if
(d)
- What will be the output of following code :
define FALSE -1
define NULL 0
define TRUE 1
int main(){
if(NULL)
printf(“NULL”);
else if(FALSE)
printf(“TRUE”);
else
printf(“FALSE”);
return 0;
}
A. TRUE
B. FALSE
C. NULL
D. Error
(a)
(adsbygoogle = window.adsbygoogle || []).push({});