Mixed Messages - Random Facts

Thank you for checking out my project. I wrote a program that outputs three random facts. I found this project to be fairly easy to conceptualize and construct. It took me around 4 hours to complete the first commit.

1 Like

Why do you use functions to store your data ? Can’t you just directly initialize the array with the data ?

I could’ve directly initialized the arrays butI wanted to keep some kind of organization with categories and not initialize arrays that weren’t going to be used to reduce the memory usage on each run.

Had you researched this in more detail how it plays out in your example?
I actually find this interesting and important. Even if the times of meticulous memory management have lost relevance in most cases.

Thank you :slight_smile: