Getting Started With C

Reading Strings from Terminal

Resources :

Featured
Special title treatment

With supporting text below as a natural lead-in to additional content.

Q1. Which function is safer and recommended for reading strings in C to avoid buffer overflow?

Q2. How do you read a string containing spaces using scanf() in C?