πŸ“Š C Programming
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
πŸ’¬ Discuss
βœ… Correct Answer: (B) 20 10 20

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
157
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
99%
Success Rate