19 How can I tell how much memory my system has?
-
1 Use getmemory()
-
2 Use sysctl()
-
3 Use freemem()
-
4 Use malloc()
B
Correct answer
Explanation
In Unix-like systems, sysctl() is a system call used to examine and modify kernel parameters, including hardware information like total physical memory. getmemory and freemem are not standard POSIX system calls for this purpose.