r/C_Programming • u/usoleta • Aug 30 '26
Etc random number hack
#include <stdio.h>
int main() {
int s[90];
printf("%d\n",s[43]);
}
0
Upvotes
r/C_Programming • u/usoleta • Aug 30 '26
#include <stdio.h>
int main() {
int s[90];
printf("%d\n",s[43]);
}
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.