Examveda
Examveda

What is the result of the expression 5 % 3 in C?

A. 2

B. 2.5

C. 1

D. 1.67

Answer: Option A

Solution(By Examveda Team)

In C, the % (modulo) operator is used to calculate the remainder when one number is divided by another. In the expression 5 % 3, it calculates the remainder of dividing 5 by 3, which is 2.

This Question Belongs to C Program >> Operators And Expressions

Join The Discussion

Related Questions on Operators and Expressions