Answer to Question #326792 in C# for Timmy

Question #326792

What is the output of this program?

  1.     class Output {
  2.         public static void main(String args[])
  3.         {   
  4.              int a = 1;
  5.              int b = 2;
  6.              int c;
  7.              int d;
  8.              c = ++b;
  9.              d = a++;
  10.        c++;
  11.        b++;
  12.        ++a;
  13.        System.out.println(a + " " + b + " " + c);
  14.      }  

Select one:

a. 2 3 4

b. 3 2 4

c. 3 4 4

d. 3 2 3


1
Expert's answer
2022-04-12T16:16:12-0400

c. 3 4 4


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS