// C program to illustrate sizes of
// pointer of array
#include<stdio.h>
int main()
int
main()
{
int arr[] = { 3, 5, 6, 7, 9 };
arr[] = { 3, 5, 6, 7, 9 };
int *p = arr;
*p = arr;
printf("p = %p\n", p);
printf
(
"p = %p\n"
, p);
printf("*p = %d\n", *p);
"*p = %d\n"
, *p);
printf("sizeof(p) = %lu\n", sizeof(p));
"sizeof(p) = %lu\n",
sizeof
(p)
);
return 0;
return
0;
}
I didn't get why printf("p = %p\n", p); <--this instruction not produced any output??
, p); <--
this instruction not produced any output??
I checked output is as:
*p=3 // since, printf("*p = %d\n", *p);
sizeof(p) = 8 //since, printf("sizeof(p) = %lu\n", sizeof(p));
64.3k questions
77.9k answers
244k comments
80.0k users