81

Which increment expression for 'short' is invalid? - nextptr

 6 years ago
source link: https://www.nextptr.com/question/a656412781/which-increment-expression-for-short-is-invalid
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Which increment expression for 'short' is invalid?

Question | Dec 29, 2017 |

enter image description here

A short integer 's' is defined as:

short s = 0;

Which one of following increment expressions is invalid or will fail to compile?

s += 1;

s = s + 1;

s += 1.0;

s += 32768;

Comments

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK