πŸ“Š C Programming
Q. What is the output?
Code:
int x = 5;
printf("%d", x++);
  • (A) 6
  • (B) 5
  • (C) 4
  • (D) Error
πŸ’¬ Discuss
βœ… Correct Answer: (B) 5

Explanation: x++ uses the current value (5), then increments x to 6.

Explanation by: Mr. Dubey
x++ uses the current value (5), then increments x to 6.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
63
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
89%
Success Rate