#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 |
we have to use realloc only after malloc or calloc ? or we can use initially with out depending on whether we are using malloc or calloc in our program ?
How to swap two values using a single variable ? condition: Not to use Array and Pointer ?
What Is The Difference Between Null And Void Pointer?
Which control loop is recommended if you have to execute set of statements for fixed number of times?
When do we get logical errors?
FILE PROGRAMMING
What are pointers? What are different types of pointers?
two progs are given. one starts counting frm 0 to MAX and the other stars frm MAX to 0. which one executes fast.
how can i get the output 54321 4321 321 21 1 in c programming........???? pls help......
What are nested functions in c?
what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;
What is the maximum length of an identifier?