Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
Tutorialspoint

1 Answer
Anvi Jain

Here we will see, what are the basic differences between fundamental data types and derived datatypes in C or C++.

Fundamental DatatypesDerived Datatypes
The fundamental datatypes are also known as primitive datatypes.Derived datatypes are composed of fundamental datatypes.
Some fundamental datatypes are int, char, float, void etc.Derived datatypes are arrays, structures, pointers etc.
Integer or Character datatypes are classified as int, char, signed int, singned char, unsigned int, unsigned charPointers are used to store address of some other variables.
Integers are used to store integer type data, not the floating point number.Arrays are used to store homogeneous data.
Floats are used to store decimal numbers. The variations are float, double, long double.Structures are group of some primitive datatypes like int, float, double etc.
Void is used where no return values are specifiedUnions are like structures, but all members of the union share the same memory locations.

Advertisements

We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy.