(adsbygoogle = window.adsbygoogle || []).push({});
- What will be the output of following code :
int main(){
int i;
if(true)
printf(“work”);
else
printf(“not work”);
return 0;
}
A. work
B. not work
C. compiler error
D. runtime error
(a)
- What will be the output of following code :
int main()
{
if(printf(“0”))
printf(“inside if block”);
else
printf(“inside else block”);
return 0;
}
A. inside else block
B. 0
C. 0inside if block
D. Error – If can not have print statement
(c)
(adsbygoogle = window.adsbygoogle || []).push({});