Question:What will be output when you will execute following c code?#include<stdio.h>
void main(){
if('\0');
else if(NULL)
printf("cquestionbank");
else;
}
Choose all that apply:
A cquestionbank
B It will print nothing
C Warning: Condition is always true
D Warning: Unreachable code
E Compilation error: if statement without any body
+ Explanation‘ ’ is null character constant. Its ASCII value is zero. if(0) means false so program control will check it else if clause.
NULL is macro constant which has been defined in stdio.h which also returns zero.