Is there any way to know memory requirement of my C code?
For example I made C code of int arrey[1000]. so how much memory will it consume in RAM when running,can I know it with any code/tool without counting it manually?(system:Ubuntu)
Edited: Like for knowing the time we can give as time ./a.out which will give prefect time for program.
You can launch your program, and at the same time, in a different terminal window, type
This will give you information about what’s running on your system: CPU usage, memory, user, time…