Is it undefined behavior to access an array out of bounds if I know what data is at the accessed ...

Subscribers:
4,120
Published on ● Video Link: https://www.youtube.com/watch?v=MUACA1RECPg



Duration: 4:26
2 views
0


Is it undefined behavior to access an array out of bounds if I know what data is at the accessed adress?
I hope you found a solution that worked for you :)
The Content (except music & images) is licensed under (https://meta.stackexchange.com/help/licensing)CC BY-SA |
Thanks to all those great people for their contributions!

(stackoverflow.com/users/17006981/urwald)Urwald |
(stackoverflow.com/users/3216312/petr)Petr |
(stackoverflow.com/users/6070341/costantino-grana)Costantino Grana |
(stackoverflow.com/users/4117728/463035818-is-not-a-number)463035818_is_not_a_number |
(stackoverflow.com/users/4224575/lorah-attkins)Lorah Attkins |
A special thanks goes out to the (https://stackoverflow.com/questions/75143565/is-it-undefined-behavior-to-access-an-array-out-of-bounds-if-i-know-what-data-is)Stackexchange community |

I wish you all a wonderful day! Stay safe :)

stack undefined-behavior c++







Tags:
stack
undefined-behavior
c++