

MCQOPTIONS
Saved Bookmarks
1. |
What is the correct syntax to define a function which overloads any operator, say + operator for bit_vector type? |
A. | FUNCTION + (L : bit_vector, R : bit_vector) RETURN bit_vector IS |
B. | FUNCTION ‘+’ (L : bit_vector, R : bit_vector) RETURN bit_vector IS |
C. | FUNCTION “+” (L : bit_vector, R : bit_vector) RETURN bit_vector IS |
D. | FUNCTION (+) (L : bit_vector, R : bit_vector) RETURN bit_vector IS |
Answer» D. FUNCTION (+) (L : bit_vector, R : bit_vector) RETURN bit_vector IS | |