+ 2

What is the use of writing "int *p = NULL;" as the output is same if it's replaced by "int *p;" ?

int j = 63; int *p = NULL; p = &j; printf("The address of j is %x\n", &j); printf("p contains address %x\n", p); printf("The value of j is %d\n", j); printf("p is pointing to the value %d\n", *p);

13th Oct 2019, 3:40 PM
Sk. Ahmed Razha Khan
Sk. Ahmed Razha Khan - avatar
1 Odpowiedź