Programming Languages C Objective
Jan 02, 2013

What will be the output of the following program ?
#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:
B) 10 10
C) Error
D) 10..50
Detailed Explanation

It's show the error messge. so the answer is c.

Discussion (0)

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

Share Your Thoughts
Feedback