Type Definitions (typedef)
In C language, users can define their own data types of identifier that represents an existing
data type. The user defined data type identifier can later be used to declare variables.
The general
like : typedef int vibhu;
Here type represents existing data type and identifier' refers to the new type name given to the
data type.
Example
main()
{
typedef int vibhu;
vibhu l, w, h;
l=5;
printf(“%d”,l);
getch();
}
In C language, users can define their own data types of identifier that represents an existing
data type. The user defined data type identifier can later be used to declare variables.
The general
- syntax :
like : typedef int vibhu;
Here type represents existing data type and identifier' refers to the new type name given to the
data type.
Example
main()
{
typedef int vibhu;
vibhu l, w, h;
l=5;
printf(“%d”,l);
getch();
}
0 Comments