Jun 28, 2024
&
(address of) and *
(dereference/goto) operators.int *p = &n;
and *p = 50;
works.char*
, pointers to the first character in a sequence of characters terminated by a NULL character (\0
).&operator
and *operator
: How to access and modify string characters using pointer arithmetic.s
as a pointer and *s
to access the value. Pointer arithmetic examples using strings.s[i]
) vs. pointer arithmetic.strcmp
to compare strings instead of ==
due to addressing issue.print
and printf
.malloc
for dynamic allocation and free
for deallocation.malloc
and strcpy
.valgrind
for detecting memory errors and leaks.