πŸ“Š C Programming
Q. What will be the output of the following code?
Code:
#include <stdio.h>
int main() {
    int a = 3;
    int b = 2;
    printf("%d", a % b);
    return 0;
}
  • (A) 1
  • (B) 2
  • (C) 3
  • (D) 0
πŸ’¬ Discuss
βœ… Correct Answer: (A) 1

Explanation: 3 % 2 equals 1. The modulus operator returns the remainder.

Explanation by: Mr. Dubey
3 % 2 equals 1. The modulus operator returns the remainder.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
53
Total Visits
πŸ“½οΈ
9 mo ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
88%
Success Rate