download Mastguru Android App

Question Detail

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
Similar Questions :

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

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

2. What is the purpose of getc()

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

3. What is true about fputs function

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

4. Out of following program :
float x = 10.7;
int i;

i = (int) x;
print i;

  • null
  • error
  • 10
  • garbage value

5. What is correct order of precedence in C

  • Addition, Division, Modulus
  • Addition, Modulus, Division
  • Multiplication, Substration, Modulus
  • Modulus, Multiplication, Substration
Read more from - C Programming Questions Answers - Chapter 1
Post a comment