Question Detail

printf() belongs to which library of c

  • stdlib.h
  • stdio.h
  • stdout.h
  • stdoutput.h
Similar Questions :

1. The compiler in C ignores all text till the end of line using

  • //
  • /
  • */
  • none of above

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

3. Break statement is used for

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

4. Due to variable scope in c

  • Variables created in a function cannot be used another function
  • Variables created in a function can be used in another function
  • Variables created in a function can only be used in the main function
  • None of above

5. What is the purpose of getc()

  • read a character from STDIN
  • read a character from a file
  • read all file
  • read file random
Read more from - C Programming Questions Answers - Chapter 1