Explain with an example how one predefined data type can be converted to a user defined data type.
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)
Comments
Leave a comment