Find the output-
int = 3 , b= 5 , c = 7 ;
a*= ( a ++ ) + ( - - b ) + ( c + + )
System . out . printIn( a + b + c )
Answers
Answered by
0
Answer:
Explanation:
The statement n += 4 is equivalent to:
++n
n=n+4 ✓
n+1
none
Question 2
What will be the output of a & b in the following, if int a, b; a=10; b=a++;
10,10
10,11
11,10 ✓
11,11
Question 3
What will be the output of a++ when int a = -1;
1
-1
0 ✓
none
Question 4
If int a = 25, b = 5, c = 0; what value is stored in c? When c = a % b;
5.0
5
0 ✓
none
Question 5
What is the result of the following in Java statement?
int m=8;
m*=8;
System.out.println("The output =" + m);
8
64 ✓
16
88
Question 6
double c;
int x, y, z;
x = 5; y = 10; z = 11;
c = x*y+z/2;
The value stored in c is:
55.0 ✓
55.5
55
none
Explanation
c = x * y + z / 2
⇒ c = 5 * 10 + 11 / 2
⇒ c = 5 * 10 + 5
⇒ c = 50 + 5
⇒ c = 55.0
Similar questions
History,
4 hours ago
Math,
7 hours ago
Economy,
7 hours ago
Math,
8 months ago
World Languages,
8 months ago