Q. What is the output of the following code?

Code:
int x = 10;
printf("%d", x++);
  • (A) 10
  • (B) 11
  • (C) 9
  • (D) Undefined
πŸ’¬ Discuss
βœ… Correct Answer: (A) 10
Explanation: Post-increment returns value before incrementing.
Explanation by: Mr. Dubey
Post-increment returns value before incrementing.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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