Question Detail

What is true about fputs function

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

1. What will be output of
#include
void main()
{
char test =`S`;
printf("\n%c",test);
}

  • S
  • Error
  • Garbage value
  • None of above

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

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

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

5. Which operator in c can't be overloaded

  • %
  • +
  • ::
  • -
Read more from - C Programming Questions Answers - Chapter 1