Given the function prototype:
?
double testAlpha(int u, char v, double t);
?
which of the following statements is legal?

A. cout << testAlpha(5, 'A', 2);
B. cout << testAlpha( int 5, char 'A', int 2);
C. cout << testAlpha('5.0', 'A', '2.0');
D. cout << testAlpha(5.0, "65", 2.0);


Answer: A

Computer Science & Information Technology

You might also like to view...

When a superclass variable refers to a subclass object and a method is called on that object, the proper implementation is determined at execution time. What is the process of determining the correct method to call?

a. early binding. b. non-binding. c. on-time binding. d. late binding.

Computer Science & Information Technology

HTTPS is the protocol prefix for secure websites

Indicate whether the statement is true or false

Computer Science & Information Technology

The each method is a very commonly used looping method. This method is supported by a number of different Ruby classes, including all of the following except ____.

A. The Array class B. The Dir class C. The String class D. The Range class

Computer Science & Information Technology

Which of the following statements about enumerated types is false?

A. To declare an enumerated type we need to provide only its type and its identifier. B. The enumerated type is based on the integer type.    C. Enumerated types can be compared. D. Enumerated types can be assigned values. E. Enumerated types can be cast.

Computer Science & Information Technology