A
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);
}
int tmp=20;
main( )
{
printf("%d ",tmp);
func( );
printf("%d ",tmp);
}
func( )
{
static int tmp=10;
printf("%d ",tmp);
}
- Correct Answer - Option(B)
- Views: 24
- Filed under category C Programming
- Hashtags:
Discusssion
Login to discuss.