download Mastguru Android App

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. What is prototype of a function in C

  • It is the return type of a function
  • It is the return data of the function
  • It is declaration of a function
  • It is a datatype

2. Which of the following below is/are valid C keywords

  • integer
  • int
  • null
  • none of above

3. printf() belongs to which library of c

  • stdlib.h
  • stdio.h
  • stdout.h
  • stdoutput.h

4. What is the purpose of getc()

  • read a character from STDIN
  • read a character from a file
  • read all file
  • read file random

5. 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
Read more from - C Programming Questions Answers - Chapter 1
Post a comment

  • onk_r 7 years ago

    #include<stdio.h>

    int main()
    {
    char c;

    printf("Enter character: ");
    c = getc(stdin);
    printf("Character entered: ");
    putc(c, stdout);

    return(0);
    }