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.
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
- dangling pointer
- side effect
- null pointer
- 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.