Relative Content

Tag Archive for cdynamic-memory-allocationheader-filesram

How to dynamically allocate RAM size within header file?

I have to add a flag option that allows a user to choose the RAM size for a program to run if they don’t want the default value of RAM. However, I’m quite the beginner and I don’t know how to get past needing the RAM size in a header file (it can’t be moved to another file by the looks of things).