New answers tagged pset2-substitution
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) ...
Top 50 recent answers are included
Related Tags
pset2-substitution × 53pset2 × 28
substitution × 11
cs50x × 6
cs50-ide × 3
pset × 2
c × 1
segmentation-fault × 1
array × 1
fails-check50-but-works × 1
variables × 1
code × 1
debug50 × 1
return × 1
isalpha × 1
cs50-pset2 × 1
input × 1
ascii × 1
check50error × 1
timeout × 1
incompatibletypes × 1
ruby × 1