[Solved] C Pointer of another pointer

In the printf call you’re casting the value of B to char *, but that’s not what you assigned to it. You assigned &A which has type char **. You need to either assign A to B: void *B = A; printf(“%p — %p — %s — %s”, (void *)&A, (void *)B, A, (char *) … Read more

[Solved] C Pointer of another pointer

Introduction A pointer of another pointer is a type of pointer that points to another pointer. This type of pointer is useful when dealing with complex data structures, such as linked lists and trees. It can also be used to pass pointers to functions as parameters. In this article, we will discuss the concept of … Read more