0
C++ array as parameter
When I run this on a computer it works as expected but print some extra question marks. Where am I going wrong? https://code.sololearn.com/ciXTiWmgeUKI/?ref=app
4 Answers
+ 6
The code itself should be correct, compiling with -fsanitize=address & -fsanitize=undefined indicates no faulty behaviour.
What characters did you intend to store in the array? Right now you are filling it with control characters that usually have no graphical representation:
https://tools.piex.at/ascii-tabelle/
+ 3
I don't see any question mark running from SoloLearn.
0
CarrieForle it runs well on this app but if you open the link on desktop you'll see some extra question marks there. For e.g |A1 | ... The question mark is inserted after A1 where there's a space. On this app it only insert space but question marks on desktop.
0
Ok guys I got it. Line 17 was the one giving me problems but after commenting it out I got the desired results đ