Which is the correct syntax to cast the char letter = ‘B’; into an int called number?

A. int number = static_cast(letter);
B. int = static_cast(‘B’);
C. int number = static_cast(char);
D. none of the above.



A. int number = static_cast(letter);

Computer Science & Information Technology

You might also like to view...

When a cell is too narrow to display a long number or calculation, ________ display

A) dashes (-) B) asterisks (*) C) ampersand signs (@) D) pound signs (#)

Computer Science & Information Technology

The Search _____ is the default location for all saved searches.?

A. ?folder B. ?box C. ?tab D. ?option

Computer Science & Information Technology

"Sharing" of music and movies was rare prior to the popularity of high-speed Internet.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

When you declare an object, what are the character fields set to?

A. ' ' B. false C. 0 D. null

Computer Science & Information Technology