[Home]
[Edit this page]
[Recent Changes]
[Special Pages]
[Help]
CPointer
When a pointer is uninitialized, it should point to 0 or NULL.
You initialize a pointer using the function malloc, which reserves free space for the dynamically allocated ?instance and returns the address to it.
C does not free this memory on its own. Therefore, you have to call ?free to do so.
Reading/writing from/to an uninitialized pointer results in an ?access violation.
[Edit this page] [Page history] [What links here] [Discuss this topic] [Printer Friendly]
CPointer
(C) Pointer
A pointer is a type that holds an address.When a pointer is uninitialized, it should point to 0 or NULL.
You initialize a pointer using the function malloc, which reserves free space for the dynamically allocated ?instance and returns the address to it.
C does not free this memory on its own. Therefore, you have to call ?free to do so.
Reading/writing from/to an uninitialized pointer results in an ?access violation.
'Pointer' links
[Edit this page] [Page history] [What links here] [Discuss this topic] [Printer Friendly]
