+ 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);
0 Answers