#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
I was asked to write a program in c which when executed displays how many no.of clients are connected to the server.
What is extern keyword in c?
What is the right type to use for boolean values in c? Is there a standard type?
what is a constant pointer in C
Differentiate between a for loop and a while loop? What are it uses?
write a program to copy the string using switch case?
When should the const modifier be used?
What is the size of enum in bytes?
What is pointer in c?
When should the register modifier be used? Does it really help?
How can you find out how much memory is available?
How can I do graphics in c?
How do you do dynamic memory allocation in C applications?
What is the difference between procedural and declarative language?
What is pointer & why it is used?