#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 language is c written?
Explain logical errors? Compare with syntax errors.
Is linux written in c?
What does typedef struct mean?
What is the difference between array_name and &array_name?
What is property type c?
Write a program that takes a 5 digit number and calculates 2 power that number and prints it(should not use big integers and exponential functions)
Read the following data in two different files File A: aaaaaaaadddddddd bbbbbbbbeeeeeeee ccccccccffffffff File B: 11111111 22222222 33333333 By using the above files print the following output or write it in the Other file as follows aaaaaaaa11111111dddddddd bbbbbbbb22222222eeeeeeee cccccccc33333333ffffffffffff
What are called c variables?
What is the deal on sprintf_s return value?
Explain how do you determine the length of a string value that was stored in a variable?
Is there a way to switch on strings?
What is n in c?
Write a program to reverse a given number in c?
How many identifiers are there in c?