Question: 1. Briefly explain the difference between pre -incrementing and post -incrementing a numeric variable. (Ex. i++ versus ++i) 2. Why is converting a value of
1. Briefly explain the difference between pre-incrementing and post-incrementing a numeric variable. (Ex. i++ versus ++i)
2. Why is converting a value of a smaller type to a value of a larger type (i.e., a "widening" conversion) considered "safer" than the converse (a "narrowing" conversion)?
3. If we know that boolean A is false but do not know if boolean B is true or false, then:
We do know A && B is false...
...but we do not know whether B || A is true or false.
Please briefly explain why this is so:
4. Which of the three types of loops (while, do-while, and for) is best suited for working with arrays?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
