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.

Sizin İçin Seçtik  Can you put a string in a struct?

Leave a Reply

Your email address will not be published. Required fields are marked *

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.

Sizin İçin Seçtik  How do you use a struct inside a struct?

Leave a Reply

Your email address will not be published. Required fields are marked *