πŸ“Š C++
Q. What will be the output of the following code?

int a = 10, b = 3;
cout << a % b;
  • (A) 1
  • (B) 3
  • (C) 0
  • (D) 10
πŸ’¬ Discuss
βœ… Correct Answer: (A) 1

Explanation: The modulus operator (%) returns the remainder of division. 10 % 3 results in 1.

Explanation by: Admin
The modulus operator (%) returns the remainder of division. 10 % 3 results in 1.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
239
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Admin
Publisher
πŸ“ˆ
88%
Success Rate