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
  • 32,469
  • 11
  • 74
  • 99
user1762571
  • 1,888
  • 7
  • 28
  • 47

0 Answers0