typedef is used to define new data type names to make a program more readable to the programmer . These examples are EXACTLY the same to the compiler. But the right hand example tells the programmer the type of money he is dealing with. A common use for typedef is to define a boolean data type as below.
What is the purpose of the typedef give an example?
typedef is used to define new data type names to make a program more readable to the programmer . These examples are EXACTLY the same to the compiler. But the right hand example tells the programmer the type of money he is dealing with. A common use for typedef is to define a boolean data type as below.