Examveda

Which of the following is the correct way of declaring a tuple?

A. tuple tp<type1, type2, type3>;

B. tuple tp = new tuple<type1, type2, type3>;

C. tuple <type1, type2, type3> tp;

D. None of the above

Answer: Option C


Join The Discussion

Related Questions on C plus plus miscellaneous

What is the difference between '++i' and 'i++' in C++?

A. None of the above

B. They both have the same effect

C. '++i' increments the value of 'i' before returning it, while 'i++' increments the value of 'i' after returning it

D. '++i' increments the value of 'i' after returning it, while 'i++' increments the value of 'i' before returning it