#include <stdio.h>
Adding 1 to a pointer doesn't move it one byte; it moves it by the size of the data type it points to. #include <stdio