int num = 10; int *ptr = # // Assign address of num to ptr
// You can also assign a pointer variable to another int *ptr1 = ptr; // Initialize pointer using another pointer
int num = 10; int *ptr = #
| Name | Name | Last commit date | ||
|---|---|---|---|---|
int num = 10; int *ptr = # // Assign address of num to ptr
// You can also assign a pointer variable to another int *ptr1 = ptr; // Initialize pointer using another pointer
int num = 10; int *ptr = #