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. Which operator in c can't be overloaded

  • %
  • +
  • ::
  • -

2. calloc() belongs to which library

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

3. What is use of \r in c

  • used to insert a vertical tab
  • used to insert a tab
  • places cursor at the end of line
  • places cursor at the start of line

4. We can insert pre written code in a C program by using

  • #read
  • #get
  • #include
  • #put

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

  • integer
  • int
  • null
  • none of above
Read more from - C Programming Questions Answers - Chapter 1
Post a comment