ExamVeda
Login
Home
Operators and Expressions
?

Which of the following operator takes only integer operands?

Answer & Solution
Correct Answer: Option D
In C, the modulus operator (%) takes only integer operands. It is used to find the remainder when one integer is divided by another. This operator is specifically designed for integer arithmetic.

Option A (+) represents the addition operator, which can take both integer and floating-point operands.
Option B (*) represents the multiplication operator, which can take both integer and floating-point operands.
Option C (/) represents the division operator, which can take both integer and floating-point operands.
Option E (None of these) is incorrect because % is the operator that specifically takes only integer operands; the other options can take both integer and floating-point operands.
Examveda
Question posted by Examveda
Community

Join the Discussion

6 Comments
Thalishetti Varsha
Thalishetti Varsha 7 years ago
Can you explain it

Abarna
Abarna 8 years ago
because modulus doesn't take real or floating point numbers as operands
AMO
AMO 9 years ago
How ??
Santosh Naidu
Santosh Naidu 9 years ago
sir could you please explain it
Ajinkya Londhe
Ajinkya Londhe 9 years ago
how it takes?
Bireswar Saha
Bireswar Saha 9 years ago
yes