Programming GATE 2017 Set 1 Solved Questions
Ques 1: Consider the following C code: GATE 2017 Q no 13 #include<stdio.h> int *assignval (int *x, int val) { *x = val; return x; } void main () { int *x = malloc(sizeof(int)); if (NULL == x) return; x = assignval (x,0); if (x) { x = (int *)malloc(sizeof(int)); if (NULL == x) return; …