#define FALSE -1

#define TRUE 1

#define NULL 0

main() {

if(NULL)

puts("NULL");

else if(FALSE)

puts("TRUE");

else

puts("FALSE");

}

Answer Posted / susie

Answer :

TRUE

Explanation:

The input program to the compiler after processing by the
preprocessor is,

main(){

if(0)

puts("NULL");

else if(-1)

puts("TRUE");

else

puts("FALSE");

}

Preprocessor doesn't replace the values given inside the
double quotes. The check by if condition is boolean value
false so it goes to else. In second if -1 is boolean value
true hence "TRUE" is printed.

Is This Answer Correct ?    10 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Cluster head selection in Wireless Sensor Network using C programming language.

3094


Given a spherical surface, write bump-mapping procedure to generate the bumpy surface of an orange

2851


What is the match merge ? compare data step match merge with proc sql merge - how many types are there ? data step vs proc sql

2397


write a program for area of circumference of shapes

2023


write a c program to input initial & final time in the format hh:mm and find the time intervel between them? Ex inputs are initial 06:30 final 00:05 and 23:22 final 22.30

2215






how to test pierrot divisor

2246


Set up procedure for generating a wire frame display of a polyhedron with the hidden edges of the object drawn with dashed lines

3017


How do you verify if the two sentences/phrases input is an anagram using predefined functions in string.h and by using arrays?

2008


write a function to give demostrate the functionality of 3d in 1d. function prototye: change(int value,int indexX,int indexY,int indexZ, int [] 1dArray); value=what is the date; indexX=x-asix indexY=y-axis indexZ=z-axis and 1dArray=in which and where the value is stored??

4128


Develop a routine to reflect an object about an arbitrarily selected plane

2979


how to programme using switch statements and fuctions, a programme that will output two even numbers, two odd numbers and two prime numbers of the users chioce.

2131


How to palindrom string in c language?

8783


why do you use macros? Explain a situation where you had to incorporate macros in your proc report? use a simple instream data example with code ?

2249


Write a routine to implement the polymarker function

4370


why nlogn is the lower limit of any sort algorithm?

2364