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. If include files can be nested

  • Yes
  • No

2. What will be the output of following program
#include
main()
{
int x,y = 10;
x = y * NULL;
printf(\"%d\",x);
}

  • error
  • 0
  • 10
  • Garbage value

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

  • *
  • -
  • ,
  • .

4. Any type of modification on the parameter inside the function will reflect in actual variable value can be related to

  • call by value
  • call by reference
  • both of above
  • none of above

5. Which is invalid name of identifier

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