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
9
u/jirbu Aug 30 '26
Nowhere near random. Every time you run the program you'll get the same result (on a standard and sane OS). You should have used 42, though.