What is the role of pointers in relation to structures in C?

  • Pointers allow dynamic allocation of structures
  • Pointers can only be used within structures
  • Pointers can't be used with structures
  • Structures cannot have pointers
Pointers in C can be used to dynamically allocate memory for structures, which is essential for creating flexible data structures and managing memory efficiently.
Add your answer
Loading...

Leave a comment

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