GATEverse
← GATE CSE 2000

Q1.12

MCQ1 mark, −0.25

The most appropriate matching for the following pairs

X:m = malloc(5); m = NULL;1:using dangling pointersY:free(n); n -> value = 5;2:using uninitialized pointersZ:char *p , *p = ‘a’ ; 3:lost memory\begin{array}{|ll|ll|}\hline X: & \text{m = malloc(5); m = NULL;} & 1: & \text{using dangling pointers} \\\hline Y: & \text{free(n); n -> value = 5;} & 2: & \text{using uninitialized pointers} \\\hline Z: & \text{char *p , *p = ‘a’ ; } & 3: & \text{lost memory} \\\hline \end{array}

is:

Sign in to save attempts.

Loading…