I have this code in c and it's working properly.
char* str2 = string + (str_len - end_len);
str_len
and end_len
are two integers and string
is another char pointer string.
I don't understand why I am able to add an integer to a character pointer string.
Shouldn't this give a type error?