how to print the address of a pointer in c
#include <stdio.h>
int main() {
int num = 10;
int *ptr = #
printf("Address of the pointer: %p", (void *)&ptr);
return 0;
}
#include <stdio.h>
int main() {
int num = 10;
int *ptr = #
printf("Address of the pointer: %p", (void *)&ptr);
return 0;
}