download Mastguru Android App

Question Detail

Adding to a pointer that points to an array will

  • Cause an error
  • Increase the value of the element that the pointer is pointing to
  • Cause the pointer to point to the next element in the array
  • None of above
Similar Questions :

1. Break statement is used for

  • Quit a program
  • Quit the current iteration
  • Both of above
  • None of above

2. Which operator in c can't be overloaded

  • %
  • +
  • ::
  • -

3. What is true about fputs function

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

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

5. What among following is true about stack

  • stack cannot reuse its memory
  • all elements are of different datatypes
  • all operation done at one end
  • none of above
Read more from - C Programming Questions Answers - Chapter 1
Post a comment