#define a 10

int main()
{
printf("%d..",a);
foo();
printf("%d..",a);
return 0;
}
void foo()
{
#undef a
#define a 50
}

Answers were Sorted based on User's Feedback



#define a 10 int main() { printf("%d..",a); foo(); printf("%d..&quo..

Answer / ilakkiyakandasamy

10..10..

Is This Answer Correct ?    2 Yes 0 No

#define a 10 int main() { printf("%d..",a); foo(); printf("%d..&quo..

Answer / ilakkiyakandasamy

10..10..

Is This Answer Correct ?    0 Yes 0 No

#define a 10 int main() { printf("%d..",a); foo(); printf("%d..&quo..

Answer / mansi

10..10

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Code Interview Questions

pls anyone can help me to write a code to print the values in words for any value.Example:1034 to print as "one thousand and thirty four only"

2 Answers  


Write a program to print a square of size 5 by using the character S.

6 Answers   Microsoft,


What is full form of PEPSI

0 Answers  


main() { int i=-1; +i; printf("i = %d, +i = %d \n",i,+i); }

1 Answers  


main() { char *cptr,c; void *vptr,v; c=10; v=0; cptr=&c; vptr=&v; printf("%c%v",c,v); }

1 Answers  






main() { int i=-1,j=-1,k=0,l=2,m; m=i++&&j++&&k++||l++; printf("%d %d %d %d %d",i,j,k,l,m); }

1 Answers  


char *someFun1() { char temp[ ] = “string"; return temp; } char *someFun2() { char temp[ ] = {‘s’, ‘t’,’r’,’i’,’n’,’g’}; return temp; } int main() { puts(someFun1()); puts(someFun2()); }

2 Answers  


Print an integer using only putchar. Try doing it without using extra storage.

2 Answers  


main() { char p[ ]="%d\n"; p[1] = 'c'; printf(p,65); }

2 Answers  


What is data _null_? ,Explain with code when u need to use it in data step programming ?

0 Answers   Abbott,


main() { signed int bit=512, i=5; for(;i;i--) { printf("%d\n", bit = (bit >> (i - (i -1)))); } } a. 512, 256, 128, 64, 32 b. 256, 128, 64, 32, 16 c. 128, 64, 32, 16, 8 d. 64, 32, 16, 8, 4

2 Answers   HCL,


main() { int c[ ]={2.8,3.4,4,6.7,5}; int j,*p=c,*q=c; for(j=0;j<5;j++) { printf(" %d ",*c); ++q; } for(j=0;j<5;j++){ printf(" %d ",*p); ++p; } }

1 Answers  


Categories