What would you like to do?

What are the advantages of using typedef in a program?

already exists.

Would you like to merge this question into it?

already exists as an alternate of this question.

Would you like to make it the primary and merge this question into it?

exists and is an alternate of .

1. Readability. Just like naming your variables properly can show how you intend to use the variable, renaming the type can help show how you intend to use all variables of this type. It eliminates the possible bug of incorrect argument ordering (e.g. if a method signature has multiple boolean flags).
2. Portability. On different systems you might want to have the same variable name (because you're using it the same way) to be of a different type. So you keep the typedef in a header file controlled by conditional compilation (for example) for maximal portability. 3. decreases complexity for declaring complex and repeated declarations like typedef unsigned long int UINT64;
6 people found this useful
Thanks for the feedback!

What are the advantage of C programming?

Before C, machine-language programmers criticized high-levellanguages because, with their black box approach, they shielded theuser from the working details of the computer an

Several advantages to using a modular approach in programming?

It is easy to understand small sections of code in the modular programming.You can store the code across multiple files.Modular   programming allows collaborative programm

Advantage of using looping statements in java programs?

  Loops allow you to save space in source code and execute code an arbitrary number of times. The only other way to do this would be recursion, but with Java's fixed stack

Advantages and disadvantages Dynamic programming?

...........................Advantages and Disadvantages of  Dynamc Programming..................    Dynamic programming provide a polynomial time solution.also used in

What is typedef in C?

 A typedef declaration lets you define your own identifiers that can be used in place of type specifiers such as int, float, and double. A typedef declaration does not rese

Advantages and disadvantages of using library program?

A library program allows users to conduct research and read for  pleasure. Libraries are also organized and have a staff available  to assist patrons. However, libraries can

What are the advantages and disadvantages of pairwise programming?

Assuming you understand what Pair-wise programming is, we can in general say that it is advantageous because the overall logic of the code written, the idea behind using certa

What are the advantages and disadvantages of CGI programming?

CGI is a standard protocol for interfacing external application software with a Web server [1]. It has been widely used for implementing dynamic generated pages on the Web.

What is the advantage of a multi-media program?

is the way of art that help you finish the art.   it depand on what type of art you are doing.   And also are computer software programs that help users design, organize

What are five advantages to using case structure to program multiple alternative decisions?

1. Switch/case structures yield cleaner, more maintainable code  than equivalent nested if..else statements.   2. With if...else statements, the programmer must put the m