s
and r
must be defined as true arrays, not just as pointers. And when passing them to scanf
, don't take their addresses; they are converted to pointers automatically.
s
and r
must be defined as true arrays, not just as pointers. And when passing them to scanf
, don't take their addresses; they are converted to pointers automatically.