InterviewSolution
Saved Bookmarks
| 1. |
What is typedef? |
|
Answer» typedef is a C keyword, used to define ALIAS/synonyms for an existing type in C language. In most cases, we use typedef's to simplify the existing type declaration syntax. Or to provide specific DESCRIPTIVE names to a type. typedef <existing-type> <new-type-identifiers>;typedef provides an alias name to the existing complex type definition. With typedef, you can simply create an alias for any type. WHETHER it is a simple INTEGER to complex function pointer or structure declaration, typedef will SHORTEN your code. |
|