Question: From the code below specify where in the executable symbols (i e Heap, Stack, Text Segment or Data Segment) are stored the following symbols. int*global_ptr
From the code below specify where in the executable symbols (i e Heap, Stack, Text Segment or Data Segment) are stored the following symbols. int*global_ptr = NULL; void func() {int x = 25; static int y = 67; global_ptr = (int*) malloc (sizeof(int)*50);} variable global_ptr: ______ Function func(): _____ Local variable x: ______ The array referenced by global_ptr: ______ Local static variable y: ______degree
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
