A

Admin • 833.24K Points
Coach

Q. What is the output of the program.?

Code:
void myshow();

int main()
{
myshow();
myshow();
myshow();
}

void myshow()
{
static int k = 20;
printf("%d ", k);
k++;
}
  • (A) 20 20 20
  • (B) 20 21 21
  • (C) 20 21 22
  • (D) Compiler error.
  • Correct Answer - Option(C)
  • Views: 29
  • 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.