Computer Science, asked by Anonymous, 1 year ago

Write the output of the following code
public static void main (String args[])
{
int a= 5;
a++;
System.out.println(a);
a=(a--)-(--a);
System.out.println(a);
}

Answers

Answered by Anonymous
5
output:-

6

2


I m a Java computer student and this is correct answer according to me

hope it works!!
Similar questions