Q. What will be the output of the following code snippet?

Code:
#include <stdio.h>
int main() {
	int a = 3, b = 5;
	int t = a;
	a = b;
	b = t;
	printf("%d %d", a, b);
	return 0;
}
  • (A) 3 5
  • (B) 3 3
  • (C) 5 5
  • (D) 5 3
πŸ’¬ Discuss
βœ… Correct Answer: (D) 5 3

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
217
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Manisha Agrawal
Publisher
πŸ“ˆ
89%
Success Rate