Programming Languages C Objective
Mar 09, 2013

What is the output of the following 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
}

Choose the correct answer:
A) Error
B) 10..50
C) 10..10
D) 50
Detailed Explanation

No Explanation

Discussion (0)

No comments yet. Be the first to share your thoughts!

Share Your Thoughts
Feedback