A

Admin • 833K Points
Coach

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
}
  • (A) 0
  • (B) 10..10
  • (C) 10..50
  • (D) Error
  • Correct Answer - Option(D)
  • Views: 15
  • Filed under category C Programming
  • Hashtags:

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.