Questions

  1. GATE CS 2017 Set 1MCQ1 markMedium (estimate)

    GATE CS 2017 Set 1, Q.13 (CS Q.13)

    Consider the following C code: #include <stdio.h> #include <stdlib.h> int *assignval(int *x, int val) { *x = val; return x; } void main() { int *x = malloc(sizeof(int)); if (NUL...

    Structures, Unions and Dynamic Memory Allocation · Pointers, Arrays and Strings

  2. GATE CS 2017 Set 2MCQ1 markEasy (estimate)

    GATE CS 2017 Set 2, Q.2 (CS Q.2)

    Match the following: | Item | Description | | :--- | :--- | | (P) static char var; | (i) Sequence of memory locations to store addresses | | (Q) m = malloc(10); m = NULL; |...

    Functions, Recursion, Scope and Storage Classes · Structures, Unions and Dynamic Memory Allocation

Other topics of Programming in C