Careful! input[3] is already a char*, so the extra ampersand is spurious. Also, this code is asking for a buffer overrun. If you must use scanf, at least tell it you don't want more than 199 characters (leaving room for the terminating null character):