#define FALSE -1
#define TRUE 1
#define NULL 0
main()
{
if(NULL)
puts("NULL");
else if(FALSE)
puts("TRUE");
else
puts("FALSE");
}
Answer Posted / sorab aggarwal
print TRUE becoz
if condition false when it 0 and if any other value occurs it is true ..
if(0)
puts("NULL"); //false this condition
else if(-1)
puts("TRUE"); //true this condition
else
puts("FALSE");
| Is This Answer Correct ? | 27 Yes | 5 No |
Post New Answer View All Answers
What is the size of structure in c?
what type of questions arrive in interview over c programming?
What does calloc stand for?
What is void c?
What is difference between structure and union with example?
How to delete a node from linked list w/o using collectons?
Explain what are reserved words?
how to write optimum code to divide a 50 digit number with a 25 digit number??
Explain what happens if you free a pointer twice?
Write a code to determine the total number of stops an elevator would take to serve N number of people.
which of the following statement is wrong a) mes=123.56; b) con='T'*'A'; c) this='T'*20; d) 3+a=b;
What is wrong with this program statement?
Why we use void main in c?
Which is better between malloc and calloc?
What is a file descriptor in c?