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

What is the size of structure in c?

1161


what type of questions arrive in interview over c programming?

2034


What does calloc stand for?

1171


What is void c?

1108


What is difference between structure and union with example?

1068


How to delete a node from linked list w/o using collectons?

2786


Explain what are reserved words?

1112


how to write optimum code to divide a 50 digit number with a 25 digit number??

3272


Explain what happens if you free a pointer twice?

1091


Write a code to determine the total number of stops an elevator would take to serve N number of people.

1264


which of the following statement is wrong a) mes=123.56; b) con='T'*'A'; c) this='T'*20; d) 3+a=b;

3268


What is wrong with this program statement?

1047


Why we use void main in c?

1178


Which is better between malloc and calloc?

1208


What is a file descriptor in c?

1138