Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis+ 5
Why does this compile and why is the answer zero?
5 Respostas
+ 6
Federico šŗ thanks for the links.
+ 6
Federico šŗ in real life I would have never written such code if not for a challenge question I encountered here? See below.
https://www.sololearn.com/post/179198/?ref=app
+ 4
I'm especially surprised that line 6 does not cause an error.
+ 1
My guess is that itās probably getting 0 as the value of whatever was stored in the memory address located just before the array. C++ doesnāt seem to care about where its arrays are being indexed at lol
- 1
Becuz you can't put -1