Advertisement
Felanpro

typedef

Jul 5th, 2016
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.35 KB | None | 0 0
  1. #include <iostream>
  2. #include <stdlib.h>
  3.  
  4. using namespace std;
  5.  
  6. //typedef short for type-definition.
  7.  
  8. typedef unsigned short int short_int
  9.  
  10. int main()
  11. {
  12.  
  13.      short_int a = "Hello World!"; //unsigned short int = short_int
  14.      short_int b = "Hello World!";
  15.      short_int c = "Hello World!";
  16.      short_int d = "Hello World!";
  17.  
  18.     return 0;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement