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");

}

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

I was asked to write a program in c which when executed displays how many no.of clients are connected to the server.

2356


What is extern keyword in c?

1115


What is the right type to use for boolean values in c? Is there a standard type?

998


what is a constant pointer in C

1130


Differentiate between a for loop and a while loop? What are it uses?

1164


write a program to copy the string using switch case?

2881


When should the const modifier be used?

1091


What is the size of enum in bytes?

1072


What is pointer in c?

1176


When should the register modifier be used? Does it really help?

954


How can you find out how much memory is available?

1055


How can I do graphics in c?

1013


How do you do dynamic memory allocation in C applications?

1074


What is the difference between procedural and declarative language?

1128


What is pointer & why it is used?

1098