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 do I use strcmp?
code for quick sort?
What are structure types in C?
What is sizeof array?
How can I call system when parameters (filenames, etc.) Of the executed command arent known until run time?
Explain the concept and use of type void.
what type of questions arrive in interview over c programming?
Compare interpreters and compilers.
Is there a way to jump out of a function or functions?
What is array within structure?
What does 2n 4c mean?
What are identifiers c?
What is local and global variable in c?
code for replace tabs with equivalent number of blanks
What is c language in simple words?