#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 ?    25 Yes 5 No

Post New Answer

More C Interview Questions

nic scientist exam

1 Answers   NIC,


Why does not use getgh(); and <conio.h> in c language.

3 Answers   Elofic,


How can I implement a delay, or time a users response, with sub-second resolution?

0 Answers  


What is macro?

5 Answers   IBM,


Explain a file operation in C with an example.

0 Answers   Amdocs,






how many keywords are available in 'c' language a) 32 b) 34 c) 45 d) 48

1 Answers  


DIFFERNCE BETWEEN THE C++ AND C LANGUAGE?

2 Answers   Wipro,


differentiate between const char *a; char *const a; and char const *a;

2 Answers   College School Exams Tests, HCL, TCS,


What is build process in c?

0 Answers  


A array contains dissimilar element how can we count, and A array contains dissimilar element how can we store in another array with out repetition.

4 Answers  


How many types of operators are there in c?

0 Answers  


What is #line used for?

0 Answers  


Categories