Computer Science, asked by grishibala20, 9 days ago

If a=5, then find the output of c. c= ++a + a-- * a++ -a a) 30 b) 36 c) 40 d) 32​

Answers

Answered by ItzMeSam35
2

import java.util.*;

public class Value

{

public static void main (String args [])

{

int a = 5;

int c = ++a + a-- * a++ -a

System.out.println(c);

}

}

//Output : 30

Answered by MrTSR
0

Output = 30

c= ++a + a-- * a++ -a

  • c= ++5 + 5-- * 5++ -5 = 30
Similar questions