#include <stdio.h>
int main(int argc, char *argv[])
{
/* POINTER AS AN ADDRESS */
int q = 10;
int *p = &q;
printf("address of q is %p\n", (void *)&q
); printf("p contains %p\n", (void *)p
);
p = NULL;
printf("NULL p now contains %p\n", (void *)p
); return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbihpbnQgYXJnYywgY2hhciAqYXJndltdKQp7CiAgLyogUE9JTlRFUiBBUyBBTiBBRERSRVNTICovCiAgaW50IHEgPSAxMDsKICBpbnQgKnAgPSAmcTsKICAKICBwcmludGYoImFkZHJlc3Mgb2YgcSBpcyAlcFxuIiwgKHZvaWQgKikmcSk7CiAgcHJpbnRmKCJwIGNvbnRhaW5zICVwXG4iLCAodm9pZCAqKXApOwogIAogIHAgPSBOVUxMOwogIHByaW50ZigiTlVMTCBwIG5vdyBjb250YWlucyAlcFxuIiwgKHZvaWQgKilwKTsKICByZXR1cm4gMDsKfQo=