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 |
what is unsigened char and what is the difference from char
What is a macro in c preprocessor?
A program to write a number of letters and numbers, such as counting and display
write a program to fined second smallest and largest element in a given series of elements (without sorting)
EXPLAIN #INCLUDE<STDIO.H> EXPLAIN #INCLUDE<CONIO.H>
Is reference used in C?
What does double pointer mean in c?
Is printf a keyword?
What are the types of pointers in c?
What is the process to generate random numbers in c programming language?
What is #define in c?
Is the below things valid & where it will be stored in memory layout ? static const volatile int i; register struct { } ; static register;