Sorry if it is not the best place to put that topic, but I'm with a doubt about some output of a code that I made in C and run in different distros. You can find the code here:
https://hastebin.com/oyovisolef.cpp
If you run the code, you will see that in the third attribution something (a static memory???) went wrong: what i receive? Why that number isnt change after a reboot? Why he cant be modificated? What hell is that? haha
When I was learning C i had been teached that when i try to atribute something to a memory that memory receives it and because of that pointers and overflows are too danger if used wrong. So.. what is that memory?
I know, the code produced a overflow, the function could be void, i started the code thinking to use list instead of arrays... but i'm new on computer science and Linux and cant imagine what is happening in the domain of memory - in the domain of C i understood the problem, i think.
Sorry for my english, i'm from brazil.
If needed, i can translate the code