Computer Applications
What is the value of x1 if x=5?
x1= ++x – x++ + --x
Java Operators
ICSE 2017
81 Likes
Answer
x1 = ++x – x++ + --x
⇒ x1 = 6 - 6 + 6
⇒ x1 = 0 + 6
⇒ x1 = 6
Answered By
41 Likes
Related Questions
Identify the operator that gets the highest precedence while evaluating the given expression:
a + b % c * d - e
- +
- %
- -
- *
Write a Java program to obtain principal amount, rate of interest and time from user and compute simple interest.
Write Java expression for:
A store has purchased some cola cans of various brands. It purchased 50 cans @ ₹15 per can, 30 cans @ ₹20 per can and 40 cans @ ₹21 per can. Write a Java program to compute how much amount did the store pay.