1.4 Aliased Types

typedef  given-type  aliases

 
 #include <iostream>
 
 typedef int apple, orange;
 
 int main() {
   apple a = 10;
   orange b = 20;
   cout << "apples = " << a << ", oranges = " << b << endl;
   return 0;
 }