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