New answers tagged

0 votes
Accepted

Can't print/populate a string in C

The first problem is the declaration. When a string (a char array) is declared, the space for it is allocated in memory. In this case, it's initialized as containing only the end of string (EOS) ...
user avatar
  • 64.2k

Top 50 recent answers are included