You're declaring c1 uninitialized and then using its garbage value as the while loop condition. This is a "bad thing". And even if c1 doesn't by chance start off with '\n' as the value, what's...