Examveda
Examveda

Which of the following operator takes only integer operands?

A. +

B. *

C. /

D. %

E. None of these

Answer: Option D

Solution(By Examveda Team)

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.

This Question Belongs to C Program >> Operators And Expressions

Join The Discussion

Comments ( 6 )

  1. Thalishetti Varsha
    Thalishetti Varsha :
    4 years ago

    Can you explain it

  2. Abarna
    Abarna :
    6 years ago

    because modulus doesn't take real or floating point numbers as operands

  3. AMO
    AMO :
    6 years ago

    How ??

  4. Santosh Naidu
    Santosh Naidu :
    7 years ago

    sir could you please explain it

  5. Ajinkya Londhe
    Ajinkya Londhe :
    7 years ago

    how it takes?

  6. Bireswar Saha
    Bireswar Saha :
    7 years ago

    yes

Related Questions on Operators and Expressions