download Mastguru Android App

Question Detail

Wild pointer in C

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

1. Difference between structure and union is

  • We can define functions within structures but not within a union
  • We can define functions within union but not within a structure
  • The way memory is allocated
  • There is no difference

2. 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

3. Any type of modification on the parameter inside the function will reflect in actual variable value can be related to

  • call by value
  • call by reference
  • both of above
  • none of above

4. What is the purpose of getc()

  • read a character from STDIN
  • read a character from a file
  • read all file
  • read file random

5. Disadvantage of array in C is

  • We can easily access each element
  • It is necessary to declare too many variables
  • It can store only one similar type of data
  • None of above
Read more from - C Programming Questions Answers - Chapter 1
Post a comment