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 |
Why doesn't C have nested functions?
When is a “switch” statement preferable over an “if” statement?
when user give a number it multiply with 9 without useing '+' and '*' oprator
What is the difference between typeof(foo) and myFoo.GetType()?
what is the use of macro program
write c program to display output 10(10+20)+(10+20+30)+ ... n term
0 Answers Hindustan Gum Chemicals,
#include<stdio.h> void main() { char *str; long unsigned int add; str="Hello C"; add=&str[0]; printf("%c",add); } What is the output?
What is a spanning Tree?
what is the difference between getch() and getchar()?
Why can arithmetic operations not be performed on void pointers?
what is the use of pointers
program for following output using for loop? 1 2 3 4 5 2 3 4 5 3 4 5 4 5 5