What is typedef

#include <iostream>

typedef int Integer; // Step 1: Declaration of typedef with an alias 'Integer' for the type 'int'

int main() {
    Integer num = 42; // Step 2: Using the typedef alias 'Integer' to declare an integer variable
    std::cout << "The value of num is: " << num << std::endl; // Step 3: Printing the value of the variable
    return 0;
}