Advertisements
Advertisements
प्रश्न
If int a = 27, b = 4, c = O; then c = a%b; results in 3.
विकल्प
True
False
MCQ
सत्य या असत्य
उत्तर
This statement is True.
Explanation:
The % operator is the modulus (remainder) operator, producing the remainder of a division by b.
- When 27 is divided by 4, the quotient is 6, with a leftover of 3.
- So, c = 27% 4 gives c = 3.
shaalaa.com
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?