typedef nameofwhatyourshortening thenewname;
typedef unsigned short int Ushort;
#include <iostream>
using namespace std;
//Shorting unsigned int to Ushort with a global scope
typedef unsigned short int Ushort;
int main()
{
Ushort num1;
cout << "Typedef Does work Proof : /nType a number"<<endl;
cin >>num1;
cout << "The Number you typed = << num1 <<endl;
system("pause");
return 0;
}
Copyright © 2024, NextGenUpdate.
All Rights Reserved.