Learn with Anil · TGPSC HMWSSB Manager (Engineering) PYQsPractise online →Subscribe ₹149

TGPSC HMWSSB Manager 2015 Paper 2 CSE · Question 95

Question 95 of the TSPSC Manager (Engineering), HMWSSB, 2015: Paper 2 (Computer Science & Information Technology) (1 November 2015). Try it first, then open the answer. The explanation is in the practice app with the All-in-One Pass.

  1. Manager 2015 Paper 2 (CS & IT) · Q95 · Programming in C, C++ & Java · C Programming

    Consider the following sequence of C language statements.

    typedef int * IntegerPointer
    IntegerPointer A,B;
    A= (IntegerPointer) malloc(sizeof(int));
    B= (IntegerPointer) malloc(sizeof(int));
    *A = 5;
    *B = 17;
    free (A);
    A=B;
    free (B);

    The above situation wherein A contains a pointer pointing to the location that B's pointer used to point to is known as

    1. dangling pointer
    2. side effect
    3. null pointer
    4. free pointer
    Show answer

    Answer: (1) dangling pointer

    Explanation: open it in the practice app. It needs the ₹149 All-in-One Pass: one payment for every exam on the site.

Answer it in the practice appMake a topic-wise quiz