πŸ“Š C Programming
Q. What is the output of the program?
Code:
int main()
{
	auto int a=10;
	{
		auto int a = 15;
		printf("%d ", a);
	}
	printf("%d ", a);
	return 1;
}
  • (A) 10 10
  • (B) 10 15
  • (C) 15 10
  • (D) Compiler error
πŸ’¬ Discuss
βœ… Correct Answer: (C) 15 10

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
207
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
97%
Success Rate