0% found this document useful (0 votes)
3 views1 page

C Pointer Notes Clean

Pointers are variables that store the address of another variable and are declared using syntax like 'int *p'. They allow for operations such as dereferencing, pointer arithmetic, and dynamic memory management with functions like malloc() and free(). Pointers also enable call by reference in functions and come in various types including null, void, wild, and dangling pointers.

Uploaded by

koushikmalakar
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views1 page

C Pointer Notes Clean

Pointers are variables that store the address of another variable and are declared using syntax like 'int *p'. They allow for operations such as dereferencing, pointer arithmetic, and dynamic memory management with functions like malloc() and free(). Pointers also enable call by reference in functions and come in various types including null, void, wild, and dangling pointers.

Uploaded by

koushikmalakar
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

C POINTER NOTES

Definition: Pointer stores address of another variable.

Declaration: int *p;

Initialization: int a=10; int *p=&a;

Dereferencing: *p gives value.

Address Operator: &a; gives address.

Types: Null, Void, Wild, Dangling.

Pointer Arithmetic: p++, p--.

Arrays: *(p+i).

Pointer to Pointer: int **pp;

Functions: Call by reference.

Dynamic Memory: malloc(), free().

Advantages: Efficient and flexible memory usage.

You might also like