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. A variable in c

  • must have a valid datatype
  • can't have a name same as keyword
  • must have a name starting with a character
  • All of above

2. Size of void pointer is

  • 1 byte
  • 2 byte
  • 4 byte
  • 8 byte

3. If include files can be nested

  • Yes
  • No

4. What is true about fputs function

  • write to a file
  • takes two parameters
  • requires a file pointer
  • all of above

5. Exit() is same as return

  • TRUE
  • FALSE
Read more from - C Programming Questions Answers - Chapter 1