what is the output of below pgm?
void main()
{
int i=0;
if(i)
printf("pass");
else
printf("fail");
}
Answer Posted / himanshu goel
fail
because here if is taking 0 boolean value means condition
becomes false and else will be executed
| Is This Answer Correct ? | 12 Yes | 0 No |
Post New Answer View All Answers
what is reason of your company position's in india no. 1.
How are 16- and 32-bit numbers stored?
write a c program to find the largest and 2nd largest numbers from the given n numbers without using arrays
Why do we use c for the speed of light?
Tell me what is null pointer in c?
Explain how do you list files in a directory?
What is a structure in c language. how to initialise a structure in c?
Calculate 1*2*3*____*n using recursive function??
in any language the sound structure of that language depends on its a) character set, input/output function, its control structures b) character set, library functions, input/output functions its control structures c) character set, library functions, control sturctures d) character set, operators, its control structures
Write a program to implement queue.
Differentiate between a for loop and a while loop? What are it uses?
what is stack , heap ,code segment,and data segment
What is the difference between scanf and fscanf?
What is queue in c?
Is null equal to 0 in sql?