0

% use in c language?

28th Feb 2022, 7:48 AM
SANKARAPANDI M
SANKARAPANDI M - avatar
8 Respuestas
+ 7
The percentage symbol(%) is known as modulo operator in arithmetic operations. It returns the reminder in a division. 10%4 = (2*4+2)%4 = 2 20%6 = (3*6+2)%6 = 2 ... Similarly, j = i%2 = 4%2 = (2*2+0)%2 = 0
28th Feb 2022, 8:17 AM
Simba
Simba - avatar
+ 6
For example?
28th Feb 2022, 8:02 AM
Simba
Simba - avatar
+ 4
It can be used to develop software like operating systems, databases, compilers
28th Feb 2022, 10:26 PM
Vaibhav
Vaibhav - avatar
+ 2
Int i = 4; Int j; j = i%2 In this case % what mean?
28th Feb 2022, 8:11 AM
SANKARAPANDI M
SANKARAPANDI M - avatar
+ 2
Now i understand thanks bro .
28th Feb 2022, 8:20 AM
SANKARAPANDI M
SANKARAPANDI M - avatar
+ 2
The % symbol is the modulus operator for denoting the remainder in division. 9%5 = 4, since 9 divided by 5 returns 1 with a remainder of 4.
2nd Mar 2022, 1:19 AM
Marvin
Marvin - avatar
+ 1
10%4 Returns the remainder of 10 divided by 4.
28th Feb 2022, 9:37 AM
Nasibullo Khalilov