const int perplexed = 2;

#define perplexed 3

main()

{

#ifdef perplexed

#undef perplexed

#define perplexed 4

#endif

printf("%d",perplexed);

}

a. 0

b. 2

c. 4

d. none of the above



const int perplexed = 2; #define perplexed 3 main() { #ifdef perplexed #undef..

Answer / guest

c)

Is This Answer Correct ?    18 Yes 1 No

Post New Answer

More C Code Interview Questions

program to Reverse a linked list

12 Answers   Aricent, Microsoft, Ness Technologies,


Give a one-line C expression to test whether a number is a power of 2.

10 Answers   Microsoft,


print numbers till we want without using loops or condition statements like specifically(for,do while, while swiches, if etc)!

11 Answers   Wipro,


func(a,b) int a,b; { return( a= (a==b) ); } main() { int process(),func(); printf("The value of process is %d !\n ",process(func,3,6)); } process(pf,val1,val2) int (*pf) (); int val1,val2; { return((*pf) (val1,val2)); }

1 Answers   Satyam,


Extend the sutherland-hodgman clipping algorithm to clip three-dimensional planes against a regular paralleiepiped

1 Answers   IBM,






how can i cast a char type array to an int type array

2 Answers  


hello sir,is there any function in C that can calculate number of digits in an int type variable,suppose:int a=123; 3 digits in a.what ll b answer?

6 Answers  


Write a Program that Inputs 10 Numbers in an Array and Show the Maximum Number

2 Answers   Ace Info,


plz tell me the solution.......... in c language program guess any one number from 1 to 50 and tell that number within 8 asking question in yes or no...............

2 Answers   Wipro,


Is the following statement a declaration/definition. Find what does it mean? int (*x)[10];

1 Answers  


String copy logic in one line.

11 Answers   Microsoft, NetApp,


char *someFun() { char *temp = “string constant"; return temp; } int main() { puts(someFun()); }

1 Answers  


Categories