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

c)

 Is This Answer Correct ? 13 Yes 1 No

More C Code Interview Questions

why java is platform independent?

All the combinations of prime numbers whose sum gives 32

main() { extern out; printf("%d", out); } int out=100;

struct point { int x; int y; }; struct point origin,*pp; main() { pp=&origin; printf("origin is(%d%d)\n",(*pp).x,(*pp).y); printf("origin is (%d%d)\n",pp->x,pp->y); }

int swap(int *a,int *b) { *a=*a+*b;*b=*a-*b;*a=*a-*b; } main() { int x=10,y=20; swap(&x,&y); printf("x= %d y = %d\n",x,y); }

Who could write how to find a prime number in dynamic array?

main() { float f=5,g=10; enum{i=10,j=20,k=50}; printf("%d\n",++k); printf("%f\n",f<<2); printf("%lf\n",f%g); printf("%lf\n",fmod(f,g)); }

#include<stdio.h> main() { register i=5; char j[]= "hello"; printf("%s %d",j,i); }

main() { char i=0; for(;i>=0;i++) ; printf("%d\n",i); }

What is the output for the following program main() { int arr2D[3][3]; printf("%d\n", ((arr2D==* arr2D)&&(* arr2D == arr2D[0])) ); }

code of a program in c language that ask a number and print its decremented and incremented number.. sample output: input number : 3 321123

main() { int i=4,j=7; j = j || i++ && printf("YOU CAN"); printf("%d %d", i, j); }

Categories