C
Programming and Technical
Programming
Basics
What is the use of typedef?
Read Solution (Total 2)
-
- typedef is a Keyword.which is used to give the alias name.
exampe
typedef int a
tupedef float f
typedef struct node NODE
- 10 years agoHelpfull: Yes(0) No(0)
- typedef is used to define your own data type in a program. Like you define a structure variable named myStruct then after executing the command
typedef myStruct m
now you can use m to define other structures with same properties and components as the myStruct variable. we define
int a
and a can be assigned the value of an integer.
similarly
m myStruct2. - 7 years agoHelpfull: Yes(0) No(0)
C Other Question