what is the output of below pgm?
void main()
{
int i=0;
if(i)
printf("pass");
else
printf("fail");
}
Answer Posted / 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 |
Post New Answer View All Answers
How was c created?
How do I send escape sequences to control a terminal or other device?
How do I swap bytes?
How to write a code for reverse of string without using string functions?
What are Macros? What are its advantages and disadvantages?
Do you know pointer in c?
How are variables declared in c?
What is function in c with example?
what will be the output for the following main() { printf("hi" "hello"); }
write a program which the o/p should b in such a way that s triangle if I/p is 3,a Square/rectangle if I/P=4,a pentagon if I/P=5 and so on...forget about the I/P which is less than 3
What should malloc(0) do? Return a null pointer or a pointer to 0 bytes?
What is a stream water?
How can I avoid the abort, retry, fail messages?
what is the significance of static storage class specifier?
Can you subtract pointers from each other? Why would you?