Default
Google

Variables: typedef

Applies To: C++Builder 1 or higher
Category: C++ Language

The typedef keyword is used to create a new type name for an existing type:
 
typedef type_name new_type_name;
 
For example, typedef int my_integer; will tell the compiler that my_integer is another name for int. Now, you can use this new type name to create an integer variable:
 
my_integer x;
 
typedef does not create a new data type. It only allows you to specify a new name for an existing type.

C++Builder Developer's Network
Copyright © Yoto Yotov



Acquiring image from ProHosting Banner Exchange