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. UML meaning is

  • Unique modeling language
  • Unified modeling language
  • Unified modern language
  • Unified master laqnguage

2. rand() function returns

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

3. What will be output of
void main()
char test =`S`;

  • S
  • Error
  • Garbage value
  • None of above

4. The first expression in a for loop is

  • Step value of loop
  • Value of the counter variable
  • Any of above
  • None of above

5. 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
Read more from - C Programming Questions Answers - Chapter 1
Post a comment