1.

Identify the correct statement.(a) typedef does not create different types. It only creates synonyms of existing types(b) typedef create different types(c) typedef create own types(d) typedef will not creates synonyms of existing typesThis question was addressed to me in examination.Query is from User Defined Types topic in division Source Files, Classes and Operator Overloading in C++ of C++

Answer»

The correct answer is (a) typedef does not CREATE different types. It only creates synonyms of EXISTING types

Explanation: By USING typedef, we can create a TYPE of pre-existing type only not our own type of data.



Discussion

No Comment Found

Related InterviewSolutions