download Mastguru Android App

Question Detail

What is wild pointer in c

  • a pointer which we need to write in future
  • a pointer which has bad naming convention
  • a pointer which has no limit
  • a point which has not initialized
Similar Questions :

1. Structures can be used

  • to hold different datatypes
  • have pointers to structures
  • to assign to one another
  • all of above

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

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

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

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

5. Difference between calloc() and malloc()

  • calloc() takes a single argument while malloc() needs two arguments
  • malloc() takes a single argument while calloc() needs two arguments
  • malloc() initializes the allocated memory to ZERO
  • calloc() initializes the allocated memory to NULL
Read more from - C Programming Questions Answers - Chapter 1
Post a comment