Ah yes, the most deterministic random number generator ever created. This function declares an uninitialized integer 'd', then immediately returns it. Congratulations, you've successfully implemented a "random" number generator that returns whatever garbage value happened to be sitting in that memory location. It's random in the sense that you have no idea what you're getting, but it's definitely not what anyone requesting a random number would want. Task failed successfully.
Well It Does Exactly What It Says
11 months ago
620,585 views
0 shares
random-memes, c-memes, cpp-memes, uninitialized-memes, garbage-value-memes | ProgrammerHumor.io
More Like This
Factory produced more than one instance of Singleton
2 years ago
97.3K views
0 shares
You Know What Language It Is
1 year ago
357.1K views
0 shares
Programmers Should Be Like
2 years ago
95.4K views
0 shares
Abstraction With A Valid Reason
9 days ago
113.0M views
0 shares
Computers Are Useful In Many Ways
1 year ago
87.6K views
0 shares
Programming In Jobs Outside IT
1 year ago
469.2K views
0 shares
Loading more content...
AI
AWS
Agile
Algorithms
Android
Apple
Bash
C++