#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
Design an implement of the inputs functions for event mode
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.
What is the match merge ? compare data step match merge with proc sql merge - how many types are there ? data step vs proc sql
how to test pierrot divisor
Set up procedure for generating a wire frame display of a polyhedron with the hidden edges of the object drawn with dashed lines
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 ?
write a program for area of circumference of shapes
Write a routine to implement the polymarker function
Given a spherical surface, write bump-mapping procedure to generate the bumpy surface of an orange
Can you send Code for Run Length Encoding Of BMP Image in C Language in linux(i.e Compression and Decompression) ?
How to palindrom string in c language?
Cluster head selection in Wireless Sensor Network using C programming language.
How do you verify if the two sentences/phrases input is an anagram using predefined functions in string.h and by using arrays?
Develop a routine to reflect an object about an arbitrarily selected plane
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??