Question Detail

What is the purpose of getc()

  • read a character from STDIN
  • read a character from a file
  • read all file
  • read file random
Similar Questions :

1. calloc() belongs to which library

  • stdlib.h
  • malloc.h
  • calloc.h
  • None of above

2. To access the members of structure which symbol is used

  • *
  • -
  • ,
  • .

3. Size of void pointer is

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

4. What is true about fputs function

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

5. Which is invalid name of identifier

  • world
  • addition23
  • test_name
  • factorial
Read more from - C Programming Questions Answers - Chapter 1