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


Please Help Members By Posting Answers For Below Questions

How was c created?

580


How do I send escape sequences to control a terminal or other device?

595


How do I swap bytes?

617


How to write a code for reverse of string without using string functions?

1568


What are Macros? What are its advantages and disadvantages?

627






Do you know pointer in c?

569


How are variables declared in c?

583


What is function in c with example?

613


what will be the output for the following main() { printf("hi" "hello"); }

9278


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

1629


What should malloc(0) do? Return a null pointer or a pointer to 0 bytes?

572


What is a stream water?

638


How can I avoid the abort, retry, fail messages?

638


what is the significance of static storage class specifier?

1642


Can you subtract pointers from each other? Why would you?

547