Ad Code

Responsive Advertisement

typedef in c language.

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


  •  syntax :
typedef <datatype> <identifiername>.

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();
}

Post a Comment

0 Comments