how to print the address of a pointer in c

#include <stdio.h>

int main() {
    int num = 10;
    int *ptr = &num;

    printf("Address of the pointer: %p", (void *)&ptr);

    return 0;
}