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);
}
β
Correct Answer: (B)
20 10 20