A
Q. What is the output of the following code?
Code:
#include
void main()
{
int s=0;
while(s++<10)>
# define a 10
main()
{
printf(“%d..”,A.;
foo();
printf(“%d”,A.;
}
void foo()
{
#undef a
#define a 50
}
void main()
{
int s=0;
while(s++<10)>
# define a 10
main()
{
printf(“%d..”,A.;
foo();
printf(“%d”,A.;
}
void foo()
{
#undef a
#define a 50
}
- Correct Answer - Option(D)
- Views: 15
- Filed under category C Programming
- Hashtags:
Discusssion
Login to discuss.