The char data types holds a single ASCII (or unicode) value, so it holds any character, for example: '2', 'r', or '~'. The problem is it only holds one character, not a whole string. That is why the string was developed; it holds a whole bunch of characters in a row. But strings cant be compared with < and >, so for alphabetical ordering, use char.
Describe the basic data types in C Describe the basic data types in C
data types supported by "C" are int , float , char , long , double , uint
Pick any three: int, char, long, void, char *, void *
eight primitive data types are: -boolean -char -byte -short -int -long -double -float
The primitive data types in C include:[signed|unsigned] char[signed|unsigned] short[signed|unsigned] int[signed|unsigned] long[signed|unsigned] long longfloatdoublelong doubleEnumerations (enum) and arrays may also be considered to be primitive types.
int, but can be assigned to a short, long or char as well
Describe the basic data types in C Describe the basic data types in C
data types supported by "C" are int , float , char , long , double , uint
eight primitive data types are: -boolean -char -byte -short -int -long -double -float
Pick any three: int, char, long, void, char *, void *
primary datatypes means the data types which are provided by developer of language himself like int,float,double,char are the primary data types in c language where as the String,array are nothing but the derived data types. for Ex.we derived the String data type from char datatype using array system.
The primitive data types in C include:[signed|unsigned] char[signed|unsigned] short[signed|unsigned] int[signed|unsigned] long[signed|unsigned] long longfloatdoublelong doubleEnumerations (enum) and arrays may also be considered to be primitive types.
Assuming by "fundamental" you mean the primitive data types: boolean, byte, char, short, int, long, float, and double
No, it's not. But it can be based on primitive data types (int, char, long, double and so on).
Types of data types :Primitive data typeUser-defined data typeDerived Data typePrimitive data type:int,char,float,double,voidUser-Defined data type:class,enumeration,structure,unionDerived Data type:Arrays,Functions,Pointers.
Pascal has 4 primitive data types: integer; boolean; char and; real. These 4 provide the basic building blocks for more complex types.
a data class that can be used to make a data type out of other data types eg: struct person { char* name; char gender; }; you can now make an instance of person like other data types person examplePerson; to access it's members use a period if not a pointer or -> if it is examplePerson.gender = 'm';