scanf with c-string - C++ Forum - cplusplus.com - The C++ Resources Network
using the & the way you tried using it (&input) produces a pointer to the whole array, but scanf expects a pointer to a single character, the first character in an array. The documentation for scanf should mention that. &input[0] is what it expects, and C...