what is the output of below pgm?
void main()
{
int i=0;
if(i)
printf("pass");
else
printf("fail");
}
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / srikanth patchava
fail
if check value is thear or not ..if its thear it will got
frist printf other wise it will goto second printf
| Is This Answer Correct ? | 0 Yes | 0 No |
how will you write a program on linked lists using JAVA programming???????????
i have to apply for the rbi for the post of officers. i need to know abt the entrance questions whether it may be aps or techinical....
Explain what is the difference between #include and #include 'file' ?
What is the best style for code layout in c?
What are local static variables? How can you use them?
what is output of the following statetment?Printf(“%x”, -1<<4); ?
How to print %d in output
How can I get Single byte from 'int' type variable? Can we alter single bit or multiple bits in int type variable? if so, How?
What are static functions?
Explain Basic concepts of C language?
Explain how do you generate random numbers in c?
What does the file stdio.h contain?