+ 1

Why both pointers point at the same adress?

Since char is 1 byte and int is 2 bytes i expected bit difference between pointer n and m but there is none why is that? Also why it is 8 on both instances? https://code.sololearn.com/c77mg1WEIXAt/?ref=app

19th Jul 2020, 9:31 PM
Eren
Eren - avatar
3 Answers
+ 1
Martin Taylor but havent i casting them to int then adding one then casting them to struct pointers edit i fixed the code forgot a parentheses
20th Jul 2020, 6:22 AM
Eren
Eren - avatar