+ 2
[meta?] weird thing relating to SL code execution
so i was tinkering around with the c++ compiler on the playground and i came across this. if anyone could clarify why this happens, i would be pretty glad made a feed post about this but then realized it's technically an SL related question so here https://code.sololearn.com/cQ6nh08h8T4I/?ref=app
3 odpowiedzi
+ 5
I don't have a explanation. but can say it's very weird.
+ 1
it's because of endl it flushes stream which also somehow print complete path of the compiler but it is seems compiler dependent
0
Mohit the coder (M.S.D) i assumed it was because of endl, but still cargv is a literal string array so i guess the compiler just auto-shortens it or something