Computer Science, asked by plutonium4935, 1 year ago

In c which keyword to be used to give a datatype a new name

Answers

Answered by harmankaur04
5
the typedef keyword in c gives data type a new name
Answered by ankhidassarma9
0

Answer:

Typedef is a keyword which is used to give an existing datatype a new name.

Explanation:

  • typedef is used to redefine the name  of a exiting variable type .
  • Consider the following statement  in which the type unsigned int is redefined to be of the type TWOWORDS:

                    typedef unsigned int TWOWORDS;

  • Now we can declare variables of the type unsigned int by writing ,

                    TWOWORDS var1, var2;

      instead of

                      unsigned int var1, var2;

Similar questions