Answer to Question #180608 in C++ for predefined data type

Question #180608

Explain with an example how one predefined data type can be converted to a user defined data type.


1
Expert's answer
2021-04-12T22:53:30-0400

Predefined datatype:

The datatype which is internally defined in the programming language, such as int, char, string etc

int i
here i is the variable of integer type.

User defined data type:

If we will create the structure of datatype by our self then it's known as user defined data type.

*struct testData{ 
int i; 
float f; 
char c;
};
 
struct testData k; // k is a variable of type testData (user-defined)

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS