#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 ?    12 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Design an implement of the inputs functions for event mode

3164


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.

2351


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

2627


how to test pierrot divisor

2458


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

3245






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 ?

2498


write a program for area of circumference of shapes

2226


Write a routine to implement the polymarker function

4581


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

3073


Can you send Code for Run Length Encoding Of BMP Image in C Language in linux(i.e Compression and Decompression) ?

4072


How to palindrom string in c language?

9787


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

3377


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

2254


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

3274


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??

4388