Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


#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

Draw a diagram showing how the operating system relates to users, application programs, and the computer hardware ?

0 Answers  


What is array of pointers to string?

0 Answers  


Explain the difference between ++u and u++?

0 Answers  


what is difference between null and nul in c language

2 Answers  


char *p="name"; printf(p);

1 Answers  


Write code for initializing one dimentional and two dimentional array in a C Program?

5 Answers   Deshaw, Edutech, GMD,


what is array?

8 Answers  


What will be the result of the following C language program? main() { int a = 0; int b = 20; char x = 1; char y = 10; if(a,b,x,y) printf("Welcome"); }

1 Answers  


What is the use of a ‘’ character?

0 Answers  


How can you read a directory in a C program?

0 Answers  


what is use#in c

3 Answers  


How do you determine a file’s attributes?

0 Answers  


Categories