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

Describe the order of precedence with regards to operators in C.

1047


What is the correct declaration of main?

1210


How can a string be converted to a number?

1021


What is a pointer in c?

1567


What is getch c?

1299


Declare the structure which contains the following members and write in C list of all students who score more than 75 marks. Roll No, Name, Father Name, Age, City, Marks.

1330


What is the difference between typedef struct and struct?

1110


What does it mean when a pointer is used in an if statement?

1107


How to draw the flowchart for structure programs?

9339


What is the process to generate random numbers in c programming language?

1177


what is the difference between 123 and 0123 in c?

1206


How can I access an I o board directly?

1093


Can you add pointers together? Why would you?

1126


In cryptography, you could often break the algorithm if you know what was the original (plain) text that was encoded into the current ciphertext. This is called the plain text attack. In this simple problem, we illustrate the plain text attack on a simple substitution cipher encryption, where you know each letter has been substituted with a different letter from the alphabet but you don’t know what that letter is. You are given the cipherText as the input string to the function getwordSets(). You know that a plain text "AMMUNITION" occurs somewhere in this cipher text. Now, you have to find out which sets of characters corresponds to the encrypted form of the "AMMUNITION". You can assume that the encryption follows simple substitution only. [Hint: You could use the pattern in the "AMMUNITION" like MM occurring twice together to identify this]

2472


pierrot's divisor program using c or c++ code

2240