I\'m trying to learn how to use the pointer in a C program; my example is as follows:
#include #include int mai
p is the conversion specifier to print pointers. Use this.
int a = 42; printf("%p\n", (void *) &a);
Remember that omitting the cast is undefined behavior and that printing with p conversion specifier is done in an implementation-defined manner.