What is the output of this program?

class Output

{

public static void main(String args[])

{

int a = 1;

int b = 2;

int c;

int d;

c = ++b:

d = a++;

c++;

b++;

++a;

System.out.println(a + " " + b + " " + c);  

1
3 2 4
2
3 2 3
3
2 3 4
4
3 4 4

Sponsored

hivanix.in

Visit

This quiz is brought to you by hivanix.in

🌐 Web App Development

Quick Navigation