k ilakkiya


{ City } chennai
< Country > india
* Profession *
User No # 123302
Total Questions Posted # 2
Total Answers Posted # 3

Total Answers Posted for My Questions # 4
Total Views for My Questions # 5105

Users Marked my Answers as Correct # 6
Users Marked my Answers as Wrong # 0
Questions / { k ilakkiya }
Questions Answers Category Views Company eMail

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

3 C Code 2495

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

1 C Code 2610




Answers / { k ilakkiya }

Question { 2495 }

#define a 10

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


Answer

10..10..

Is This Answer Correct ?    2 Yes 0 No

Question { 2495 }

#define a 10

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


Answer

10..10..

Is This Answer Correct ?    0 Yes 0 No


Question { 2610 }

#define a 10
void foo()
{
#undef a
#define a 50
}

int main()
{
printf("%d..",a);
foo();
printf("%d..",a);
return 0;
}
explain the answer


Answer

50..50..

Is This Answer Correct ?    4 Yes 0 No