Q1.12MCQ1 mark, −0.25The 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}X:Y:Z:m = malloc(5); m = NULL;free(n); n -> value = 5;char *p , *p = ‘a’ ; 1:2:3:using dangling pointersusing uninitialized pointerslost memory is:(A)X−1 Y−3 Z−2X - 1 \ \ Y - 3 \ \ Z - 2X−1 Y−3 Z−2(B)X−2 Y−1 Z−3X - 2 \ \ Y - 1 \ \ Z - 3X−2 Y−1 Z−3(C)X−3 Y−2 Z−1X - 3 \ \ Y - 2 \ \ Z - 1X−3 Y−2 Z−1(D)X−3 Y−1 Z−2X - 3 \ \ Y - 1 \ \ Z - 2X−3 Y−1 Z−2Sign in to save attempts.Show answer← PreviousNext →SolutionsDiscussionLoading…Sign in with Google