Why both pointers point at the same adress? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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
1 Answer
+ 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