What will be the result of compiling and running the following program? Select the one correct answer.

Question:

What will be the result of compiling and running the following program?

image text in transcribed

Select the one correct answer.

(a) The program will fail to compile, since the compiler will report that the variable c in the multiple assignment statement a = b = c = 20; has not been initialized.

(b) The program will fail to compile, because the multiple assignment statement a = b = c = 20; is illegal.

(c) The code will compile, and print 10 at runtime.

(d) The code will compile, and print 20 at runtime.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: