1.

What is the syntax of user-defined data types?(a) typedef ExistingDataType NameByUser(b) typedef NameByUser ExistingDataType(c) def NameByUser ExistingDataType(d) def NameByUser ExistingDataThe question was asked in a national level competition.This interesting question is from User Defined Types in chapter Source Files, Classes and Operator Overloading in C++ of C++

Answer»

Correct option is (a) TYPEDEF EXISTINGDATATYPE NameByUser

The EXPLANATION is: correct syntax is typedef ExistingDataType NameByUser.

typedef int INT; (typedef existing-datatype New-name;).



Discussion

No Comment Found

Related InterviewSolutions