I want to read user input into a fixed-size character array safely. *Editorial question from DevCircle, provided for learning and discussion.*
Loading page content…
Real questions. Helpful answers. A little collective wisdom.
I want to read user input into a fixed-size character array safely. *Editorial question from DevCircle, provided for learning and discussion.*
My program crashes while reading or writing memory. What should I inspect first? *Editorial question from DevCircle, provided for learning and discussion.*
Array expressions often behave like pointers. Are the two types actually interchangeable? *Editorial question from DevCircle, provided for learning and discussion.*
Using == on two character pointers does not compare their text. What is the correct approach? *Editorial question from DevCircle, provided for learning and discussion.*
I need to allocate memory dynamically. Does either function initialize the allocated bytes? *Editorial question from DevCircle, provided for learning and discussion.*