Which of the following statements about implicit type conversion is true?
A. Characters cannot be used in arithmetic expressions so they cannot be promoted.
B. To evaluate a long long integer and a double, the double is first demoted to a long long integer.
C. If the right expression in an assignment has a higher-ranked type than the variable on the left of the assignment operator, the right expression is promoted to the variables type.
D. In an assignment, the expression on the right of the assignment operator may be promoted or demoted to match the type of the variable on the left.
E. Integer values cannot be promoted to real and real values cannot be demoted to integer.
Answer: D
You might also like to view...
The ________ website in the Sound Byte includes webinars and videos on Office products
Fill in the blank(s) with correct word
What is the best safeguard against zero-day attacks?
A. Enable auditing. B. Regularly inspect all logs. C. Update the hardware and software as soon as new updates are released. D. Implement backups.
Answer the following statement(s) true (T) or false (F)
Research on wearable computers has been conducted at MIT labs for more than a decade, and these computers are now moving into working reality.
What is a qualified name?
What will be an ideal response?