typedef
 

  • Usage of the typedef mechanism:

      • A (user defined) struct type (and other data types) can be given a unique name (= "alias") using the typedef keyword

  • Syntax:

         typedef  dataType  alias 

  • Example:

         typedef  struct BankAccount  BankAccount_t ; 

    You can now use BankAccount_t in the place of struct BankAccount