asked 167k views
3 votes
the of a process contains temporary data such as function parameters, return addresses, and local variables. a.data sectionb.stackc.program counterd.text section

1 Answer

4 votes

Here Is the Answer:

The answer is (b) stack. The stack is a memory region used by a process to store temporary data such as function parameters, return addresses, and local variables. It is a last-in, first-out (LIFO) data structure, meaning that the most recently added item is the first to be removed. The stack is an essential component of a process's runtime environment, as it plays a crucial role in managing function calls and returns, and in passing data between functions. It is allocated dynamically at runtime and released when the process terminates.

answered
User Alejandro Martin
by
8.7k points