#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 |
Explain how do you determine the length of a string value that was stored in a variable?
How to find the usage of memory in a c program
Write a program that can show the multiplication table.
What are operators in c?
difference between c and c++?
Find errors (1) m = ++a*5; (2) a = b ++ -c*2; (3)y = sqrt (1000);
if array a conatins 'n' elements and array b conatins 'n-1' elements.array b has all element which are present in array a but one element is missing in array b. find that element.
18 Answers Parexel, Ram Infotech, Zycus Infotech,
can v write main() { main(); } Is it true?
Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the maximum number of concurrent threads that the InnoDB plug-in can create.
How will you divide two numbers in a MACRO?
What type is sizeof?
why we wont use '&' sing in aceesing the string using scanf