Computer Science, asked by Ishantyadav456, 1 year ago

int a=10,b=4,c,d;
c=++a-b - -*2;
d=(a/2*5) - - -d;
System.out.println(c);
System.out.println(d);

Answers

Answered by Anonymous
4
output:-
3
in the second case u have to assign a value to d else the program will show error
0
Answered by swastikPMBGHking
1

Explanation:

int c=++a-b--*2;

c=++10-4--*2;

c=11-4*2;

c=11-8; [By BODMAS rule]

c=3;

Out put is 3

Similar questions