Compute double pointers in c

Asked 2 years ago, Updated 2 years ago, 49 views

double * ptr = 0x0010; declared If you output ptr+1 ptr+2 ptr+3 in printf, it will be 0x00180x00200x0028. I don't understand why ptr+2 is not 0x0026 but 0x0028 in ptr+3. Is it just because it's not a proper initialization?

c pointer

2022-09-22 19:31

1 Answers

In hexadecimal, 8 is 5.


2022-09-22 19:31

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.