+ 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

6th Jul 2018, 3:00 PM
hinanawi
hinanawi - avatar
3 Réponses
+ 5
I don't have a explanation. but can say it's very weird.
6th Jul 2018, 3:06 PM
LONGTIE👔
LONGTIE👔 - avatar
+ 1
it's because of endl it flushes stream which also somehow print complete path of the compiler but it is seems compiler dependent
6th Jul 2018, 3:17 PM
MsJ
MsJ - avatar
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
6th Jul 2018, 3:19 PM
hinanawi
hinanawi - avatar