#define FALSE -1
#define TRUE 1
#define NULL 0
main()
{
if(NULL)
puts("NULL");
else if(FALSE)
puts("TRUE");
else
puts("FALSE");
}
Answer / 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 |
How can I remove the trailing spaces from a string?
WRITE A PROGRAM TO MERGE TWO SORTED ARRAY USING MERGE SORT TECHNIQUE..
how can use subset in c program and give more example
What are structural members?
How to write in a function declaration and in function call in which the function has 'n' number of varible or arguments?
What is the use of the restrict keyword?
Q. where is the below variables stored ? - volatile, static, register
wap to print "hello world" without using the main function.
How reliable are floating-point comparisons?
How to write a code for implementing my own printf() and scanf().... Please hep me in this... I need a guidance... Can you give an coding for c... Please also explain about the header files used other than #include<stdio.h>...
How can I write data files which can be read on other machines with different word size, byte order, or floating point formats?
Find if a number is power of two or not?