Where does the memory referenced by primes [1 reside in the process virtual addr
ID: 3876258 • Letter: W
Question
Where does the memory referenced by primes [1 reside in the process virtual address space? A Where does the memory referenced by result reside in the process virtual address space? Register B. Stack - Where does the memory pointed to by the pointer p reside in the process virtual address space? - Where does the memory address stored in the pointer p reside in the process virtual address space? C. Heap D. Data Segment EText Segment Where does the memory referenced by val reside in the process virtual address space?Explanation / Answer
prime[] is a global array and all Global variables occupy data from => (D) Data Segment
result is Automatic variables and all auto variables reside in => (B) Stack
point p , its a malloc and memory occupied by malloc is from Heap , so => (C) Heap
point p addreess will be stored in Stack , so => (B) Stack
Parameter values to functions are stored on the stack=> (B) Stack
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.