r/C_Programming • • Aug 30 '26

Etc random number hack

#include <stdio.h>


int main() {
    int s[90];
    printf("%d\n",s[43]);
}
0 Upvotes

8 comments sorted by

View all comments

Show parent comment

1

u/aocregacc Aug 30 '26

with address space layout randomization there could easily be some memory that does change from run to run, if there was a pointer stored there for example.