What is the result?

Given:

What is the result?
A. Hello Log 2:2
B. Welcome Log 1:2
C. Welcome Log 2:1
D. Hello Log 1:2

Download Printable PDF. VALID exam to help you PASS.

6 thoughts on “What is the result?

  1. I compiled it and got Hello Log 2 : 2. This is a test to see if you understand the difference between the pre vs post increment. pre (++x) will add one then return the value, post (x++) will return the value and then add.

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.