1.

Define Data Type And What Are The Types Of Data Type?

Answer»

Data type refers to the kinds of data that VARIABLES may hold in the programming language. Eg) int, float, char, double – C

The following are the TYPES of data type:

  • BUILT in data type- int, float, char, double which are defined by programming language itself
  • User defined data type- Using the set of built in data types user can define their own data type

Eg: typedef struct STUDENT

{ int roll; char name; }S; S s1;

Where S is a tag for user defined data type which defines the STRUCTURE student and s1 is a variable of data type S.

Data type refers to the kinds of data that variables may hold in the programming language. Eg) int, float, char, double – C

The following are the types of data type:

Eg: typedef struct student

Where S is a tag for user defined data type which defines the structure student and s1 is a variable of data type S.



Discussion

No Comment Found