Consider two pointers, ptr_int (pointing to int) and ptr_char (pointing to char), both initially at memory address 1000. After executing ++ptr_int and ++ptr_char, their new addresses (assuming int=4 bytes, char=1 byte) will be:
Consider two pointers, ptr_int (pointing to int) and ptr_char (pointing to char),…
Written by
in
Leave a Reply