In a c-book I bought, an exercise program is given as
what is the output for the following code snippet?
printf(3+"Welcome"+2);
the answer I got is me (by executing it in TC++)
But I can’t get the actual mechanism.
please explain me the actual mechanism behind it.
It’s called pointer arithmetic: 2+3=5, and “me” is the rest of the string starting at offset 5.
PS: throw away that book.