Basic and Advance C Question: Download Questions PDF
What are pointers really good for, anyway?
Answer:
They're good for lots of things, such as:
* dynamically-allocated arrays
* generic access to several similar variables
* (simulated) by-reference function parameters
* malloc'ed data structures of all kinds, especially trees and linked lists
* walking over arrays (for example, while parsing strings)
* efficient, by-reference ``copies'' of arrays and structures, especially as function parameters
* dynamically-allocated arrays
* generic access to several similar variables
* (simulated) by-reference function parameters
* malloc'ed data structures of all kinds, especially trees and linked lists
* walking over arrays (for example, while parsing strings)
* efficient, by-reference ``copies'' of arrays and structures, especially as function parameters
Download C Programming Interview Questions And Answers
PDF
Previous Question | Next Question |
Can I initialize unions? | Are enumerations really portable? |