Single Choice Not Set

QWhich of the following data type will throw an error on modulus operation(%)?

ID: #1179 Operators and Enums in C Language 30,095 views
Question Info
#1179Q ID
Not SetDifficulty
Operators and Enums in C LanguageTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A char
  • B short
  • C float
  • D int
Correct Answer

Explanation

Option C

Learn more about operators

Assume variable A holds 10 and variable B holds 20 then −

% Modulus Operator and remainder of after an integer division. B % A = 0

Share This Question

Challenge a friend or share with your study group.