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
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
0
Output = 30
c= ++a + a-- * a++ -a
- c= ++5 + 5-- * 5++ -5 = 30
Similar questions
English,
4 days ago
English,
4 days ago
Social Sciences,
4 days ago
English,
9 days ago
Math,
8 months ago
Social Sciences,
8 months ago
Computer Science,
8 months ago