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
How #define works?
What kind of structure is a house?
What is .obj file in c?
What is NULL pointer?
Write a program to swap two numbers without using third variable?
Why is %d used in c?
What is wrong in this statement? scanf(ā%dā,whatnumber);
What is a pragma?
What is the purpose of main( ) in c language?
What is cohesion in c?
In which language linux is written?
Linked list is a Linear or non linear explain if linear how it working as a non linear data structures
main use of recursive function a) processing speed high b) reduce program length/reduce repeated statements c) if you do not, use iterative methods like, for, while or do-while d) all the above
What is an operator?
Once I have used freopen, how can I get the original stdout (or stdin) back?