0
char p[10]="Hello world";
printf("%u %u",&p,p);

Output:

4294959568 4294959568

Why both are giving the same value? &p should give the address of where it is storing the array address right?

What happens when an array is defined? What value will be there in p and the array is accessed?

awesoon
  • 30,028
  • 9
  • 67
  • 92
user1762571
  • 1,758
  • 5
  • 24
  • 45

0 Answers0