Computer Applications
Write one difference between / and % operator.
Java Operators
ICSE 2017
16 Likes
Answer
/ operator computes the quotient whereas % operator computes the remainder.
Answered By
10 Likes
Related Questions
if (a>b&&b>c) then largest number is:
- b
- c
- a
- wrong expression
Write Java expression for:
A student executes the following code to increase the value of a variable ‘x’ by 2.
He has written the following statement, which is incorrect.
x = +2;What will be the correct statement?
A. x +=2;
B. x =2;
C. x = x +2;- Only A
- Only C
- All the three
- Both A and C