download Mastguru Android App

Question Detail

What is dangling pointer in c

  • if pointer is pointing to a memory location from where variable has been deleted
  • if pointer is assigned to more than one variable
  • if pointer is not defined properly
  • none of above
Similar Questions :

1. What among following is true about stack

  • stack cannot reuse its memory
  • all elements are of different datatypes
  • all operation done at one end
  • none of above

2. calloc() belongs to which library

  • stdlib.h
  • malloc.h
  • calloc.h
  • None of above

3. rand() function returns

  • float value
  • integer value
  • any type
  • none of above

4. Which of the following below is/are valid C keywords

  • integer
  • int
  • null
  • none of above

5. Out of following program :
float x = 10.7;
int i;

i = (int) x;
print i;

  • null
  • error
  • 10
  • garbage value
Read more from - C Programming Questions Answers - Chapter 1
Post a comment