The ________ operator is particularly useful when working with complex template types for which it’s often difficult to provide, or even determine, the proper type declaration. Rather than trying to write a complex type declaration, for example, that represents the return type of a function, you can place in the parentheses of this operator an expression that returns the complex type and let the compiler “figure it out.”

a. infer_type
b. decltype
c. determine_type
d. static_assert


b. decltype

Computer Science & Information Technology

You might also like to view...

Suppose an array reptiles is ["snake", "turtle", "lizard", "crocodile"]. To remove the last item from the array, use the statement ___.

A. reptiles.push("crocodile"); B. reptiles.push(); C. reptiles.pop("crocodile"); D. reptiles.pop(); E. reptiles.unshift("crocodile"); F. reptiles.unshift(); G. reptiles.shift("crocodile"); H. reptiles.shift();

Computer Science & Information Technology

A good programming practice is to stop processing a form when an error is found and display the error to the user.

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

Computer Science & Information Technology

clockType-hr: int-min: int-sec: int+setTime(int, int, int): void+getTime(int&, int&, int&) const: void+printTime() const: void+incrementSeconds(): int+incrementMinutes(): int+incrementHours(): int+equalTime(const clockType&) const: boolConsider the UML class diagram shown in the accompanying figure. According to the UML class diagram, how many private members are in the class?

A. none B. zero C. two D. three

Computer Science & Information Technology

__________ are collections of related variables—sometimes referred to as aggregates—under one name.

a) Members b) Enumerations c) Structures d) Files

Computer Science & Information Technology