Why does scanf("%s") behave strangely with char*?
805
Why do I get a segmentation fault when writing to a "char *s" initialized with a string literal, but not "char s[]"?
108162
What is the effect of trailing white space in a scanf() format string?
116048
Char array in a struct - incompatible assignment?
123203
Why does this intentionally incorrect use of strcpy not fail horribly?
82318
What is the difference between char array and char pointer in C?
45706
What is the use of the %n format specifier in C?
11145
Why does cout print char arrays differently from other arrays?
36647
Why does printf("%f",0); give undefined behavior?
20753
How to prevent scanf causing a buffer overflow in C?
28634
Why printf() when printing multiple strings (%s) leaves newline and how to solve this?
28734
Why is "a" != "a" in C?
109672
How to scan a string using scanf with C++
54525
Why is scanf() causing infinite loop in this code?
119718
Why does printf print wrong values?
136285
When should I use ampersand with scanf()
94252
How to determine the result of assigning multi-character char constant to a char variable?
87669
C input - getchar()