A

Admin • 833K Points
Coach

Q. What is the output of the following C program?

Code:
#include
int tmp=20;
main( )
{
printf("%d ",tmp);
func( );
printf("%d ",tmp);
}
func( )
{
static int tmp=10;
printf("%d ",tmp);
}
  • (A) 20 10 10
  • (B) 20 10 20
  • (C) 20 20 20
  • (D) 10 10 10
  • Correct Answer - Option(B)
  • Views: 24
  • 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.