Type definition
#include <stdafx.h>
#include <iostream>
using namespace std;
/* // We can create a new name for an existing type using typedef. */
int main()
{
typedef int type; /* Here we have given the new name 'type' for the datatype int. */
type number=10; /* Here data type of number is int. */
cout<< "Value of number :" <<number <<endl;
return 0;
}
Output:
Value of number :10