MCQs
There are two types of models. They are references to built-in types and multipart types.
We are defining the user-defined data type to be availed only inside that program, if we want
to use anywhere means we have to define those types in the header file.
There are three types of user-defined data types. They are typedef, union, enumerator.
None.
error: invalid conversion from 'const char*' to 'let {aka char}'
In this program, we are defined the data types as enumerator and printing its value in a order.
Output:
$ g++ user1.cpp
$ a.out
012345678910
In this program, we are manipulating the numbers and printing the result using user-defined
data types.
Output:
$ g++ user.cpp
$ a.out
20
Union is used to define the data types of our choice and it will store the data type in one
location make them accessible.
By using typedef, we can create a type of pre-existing type only not our own type of data.
None.