100 = salesAmount;
?
In terms of assignment operators, why is the above statement illegal?
What will be an ideal response?
This assignment operator has a right-to-left associativity. Associativity is the order in which values are used with operators. An identifier that can appear on the left side of an assignment operator sometimes is referred to as an lvalue, and an item that can appear only on the right side of an assignment operator is an rvalue. A variable can be used as an lvalue or an rvalue, but a literal constant can only be an rvalue.
Since 100 is a numeric constant, it is an rvalue, which is an item that can appear only on the right side of the assignment operator.
You might also like to view...
In the accompanying figure, the opening and closing tags are selected in both the Code pane and the Design pane.
Answer the following statement true (T) or false (F)
A chart filter in Excel 2013:
A) controls which data series and categories are visible in a chart. B) controls which charts are printed and which are visible on the screen of a workbook. C) displays a list of all charts in a workbook in order to select which charts you want to print. D) displays all chart types and filters that are available for the data you want to present.
Setting thedisplayvalue toinlinekeeps all elements on the same line, rather than displaying them on separate lines, which is the default. _______________________
Answer the following statement true (T) or false (F)
The ________is a tool that reviews a workbook for hidden or personal data stored in the workbook or personal document properties.
A. Workbook Inspector B. Issue Checker C. Review Panel D. Document Inspector