#define FALSE -1

#define TRUE 1

#define NULL 0

main()

{

if(NULL)

puts("NULL");

else if(FALSE)

puts("TRUE");

else

puts("FALSE");

}



#define FALSE -1 #define TRUE 1 #define NULL 0 main() { if(NULL) puts(&quo..

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

Post New Answer

More C Interview Questions

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 ?

2 Answers  


How to swap two values using a single variable ? condition: Not to use Array and Pointer ?

6 Answers  


What Is The Difference Between Null And Void Pointer?

0 Answers   TCS,


Which control loop is recommended if you have to execute set of statements for fixed number of times?

0 Answers  


When do we get logical errors?

0 Answers  


FILE PROGRAMMING

0 Answers   Wipro,


What are pointers? What are different types of pointers?

0 Answers   Fidelity,


two progs are given. one starts counting frm 0 to MAX and the other stars frm MAX to 0. which one executes fast.

5 Answers   Verifone,


how can i get the output 54321 4321 321 21 1 in c programming........???? pls help......

10 Answers   Infosys,


What are nested functions in c?

0 Answers  


what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;

0 Answers   L&T,


What is the maximum length of an identifier?

0 Answers  


Categories