retagged by
5,832 views
26 votes
26 votes

Match the following:$$\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. P-ii; Q-iv; R-i; S-iii
  2. P-ii; Q-i; R-iv; S-iii
  3. P-ii; Q-iv; R-iii; S-i
  4. P-iii; Q-iv; R-i; S-ii
retagged by

3 Answers

Best answer
33 votes
33 votes

static char var $=$ A variable located in data section of memory

$m= malloc(10); m= null; $ Here, free(m) is missing: So, a lost memory which cannot be freed

$char * ptr[10];$ Sequence of 10 memory locations to store addresses

register int var1; Request to allocate a CPU register to store data

Answer is A.

edited by
Answer:

Related questions

39 votes
39 votes
5 answers
1
Madhav asked Feb 14, 2017
9,634 views
Match the following according to input (from the left column) to the compiler phase (in the right column) that processes it:$$\begin{array}{|l|l|}\hline \text{P. Syntax t...
25 votes
25 votes
7 answers
2
khushtak asked Feb 14, 2017
6,900 views
Match the algorithms with their time complexities:$$\begin{array}{|l|l|}\hline \textbf{Algorithms} & \textbf{Time Complexity} \\\hline \text{P. Tower of Hanoi with $n$...
36 votes
36 votes
6 answers
4