Check out example codes for "whats a typedef in c++". It will help you in understanding the concepts better.

Code Example 1

// typedef [type] [alias]
// Example:
typedef unsigned long int ulong;

ulong someNumber = 158426;

Code Example 2

#include <iostream>
 int main(){
	typedef unsigned int ui;
	ui i = 5, j = 8;
	std::cout << "i = " << i << std::endl;
	std::cout << "j = " << j << std::endl;
	return 0;
}

Learn ReactJs, React Native from akashmittal.com