Question: Consider the following section of code: char x=( char ) malloc (sizeof(int)4) Which of the following is the most correct statement? 4 bytes have been

Consider the following section of code: char x=( char ) malloc (sizeof(int)4) Which of the following is the most correct statement? 4 bytes have been allocated on the stack and 16 bytes been allocated on the heap. 1 byte has been allocated on the heap and 16 bytes have been allocated on the stack. 4 bytes have been allocated on the heap and 16 bytes have been allocated on the stack. 1 byte has been allocated on the stack and 16 bytes have been allocated on the heap
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
