VII Pointers and Memory Allocation

VII.3: What is a null pointer?

VII.1: What is indirection?

VII.2: How many levels of pointers can you have?

VII.3: What is a null pointer?

VII.4: When is a null pointer used?

VII.5: What is a void pointer?

VII.6: When is a void pointer used?

VII.7: Can you subtract pointers from each other? Why would you?

VII.8: When you add a value to a pointer, what is really added?

VII.9: Is NULL always defined as 0?

VII.10: Is NULL always equal to 0?

VII.11: What does it mean when a pointer is used in an if statement?

VII.12: Can you add pointers together? Why would you?

VII.13: How do you use a pointer to a function?

VII.14: When would you use a pointer to a function?

VII.15: Can the size of an array be declared at runtime?

VII.16: Is it better to use malloc() or calloc()?

VII.17: How do you declare an array that will hold more than 64KB of data?

VII.18: What is the difference between far and near ?

VII.19: When should a far pointer be used?

VII.20: What is the stack?

VII.21: What is the heap?

VII.22: What happens if you free a pointer twice?

VII.23: What is the difference between NULL and NUL?

VII.24: What is a "null pointer assignment" error? What are bus errors, memory faults, and core dumps?

VII.25: How can you determine the size of an allocated portion of memory?

VII.26: How does free() know how much memory to release?

VII.27: Can math operations be performed on a void pointer?

VII.28: How do you print an address?

No comments:

Post a Comment

 
Online Advertising Top Blogs Computers