Follow Our FB Page << >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...

#define FALSE -1

#define TRUE 1

#define NULL 0

main() {



else if(FALSE)





#define FALSE -1 #define TRUE 1 #define NULL 0 main() { if(NULL) puts(&q..

Answer / susie

Answer :



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




else if(-1)





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 ?    7 Yes 1 No

Post New Answer

More C Code Interview Questions

How to palindrom string in c language?

6 Answers   Google,

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

0 Answers   IBM,

How to use power function under linux : for(i=1;i<=n;i++){ pow(-1,i-1)} since it alerts undefined reference to 'pow'.

2 Answers  

struct Foo { char *pName; char *pAddress; }; main() { struct Foo *obj = malloc(sizeof(struct Foo)); clrscr(); obj->pName = malloc(100); obj->pAddress = malloc(100); strcpy(obj->pName,"Your Name"); strcpy(obj->pAddress, "Your Address"); free(obj); printf("%s", obj->pName); printf("%s", obj->pAddress); } a. Your Name, Your Address b. Your Address, Your Address c. Your Name Your Name d. None of the above

2 Answers   HCL,

main() { int i=10; i=!i>14; Printf ("i=%d",i); }

1 Answers  

why nlogn is the lower limit of any sort algorithm?

0 Answers  

how can i search an element in an array

2 Answers   CTS, Microsoft, ViPrak,

main() { static char names[5][20]={"pascal","ada","cobol","fortran","perl"}; int i; char *t; t=names[3]; names[3]=names[4]; names[4]=t; for (i=0;i<=4;i++) printf("%s",names[i]); }

2 Answers  

How to count a sum, when the numbers are read from stdin and stored into a structure?

1 Answers  

&#8206;#define good bad main() { int good=1; int bad=0; printf ("good is:%d",good); }

2 Answers  

How we print the table of 3 using for loop in c programing?

7 Answers  

Write a Program in 'C' To Insert a Unique Number Only. (Hint: Just Like a Primary Key Numbers In Database.) Please Some One Suggest Me a Better Solution for This question ??

0 Answers   Home,