Match the following: \(\begin{array}{|ll|ll|}\hline P. & \text{static char var…

PYQ GATE 2017

Match the following:

P.static char var ;i.Sequence of memory locations to store addressesQ.m = malloc(10); m =NULL ;ii.A variable located in data section of memoryR.char *ptr[10] ;iii.Request to allocate a CPU register to store dataS. register int varl;iv.A lost memory which cannot be freed\begin{array}{|ll|ll|}\hline P. & \text{static char var ;} & \text{i.} & \text{Sequence of memory locations to store addresses} \\\hline Q. & \text{m = malloc(10); m =NULL ;} & \text{ii.} & \text{A variable located in data section of memory} \\\hline R. & \text{char *ptr[10] ;} & \text{iii.} & \text{Request to allocate a CPU register to store data} \\\hline S. & \text{ register int varl;} & \text{iv.} & \text{A lost memory which cannot be freed} \\\hline\end{array}

  1. A.

    P-ii; Q-iv; R-i; S-iii

  2. B.

    P-ii; Q-i; R-iv; S-iii

  3. C.

    P-ii; Q-iv; R-iii; S-i

  4. D.

    P-iii; Q-iv; R-i; S-ii

Attempted by 769 students.

Sign up free to check your answer

Sign up free

Explore the full course: Zero To Hero

Loading lesson…