17. What will be the output of following code :
// Assume all header files are included
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
View Answer & Explanation
Ans. c
18. What will be the output of following code :
// Assume all header files are included
#define clrscr() 100
main(){
clrscr();
printf(%d\n\t, clrscr());
}
A. 100
B. 10
C. Compile Error
D. Runtime Error
View Answer & Explanation
Ans. a