I have two pointers,
char *str1; int *str2;
If I look at the size of both the pointers let’s assume
str1=4 bytes str2=4 byt
A char is 1 byte, an int is (typically) 4 bytes. When you increment a pointer, you increment by the size of the data being pointed to. So, when you increment a char*, you increment by 1 byte, but when you increment an int*, you increment 4 bytes.
char
int
char*
int*