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. Exit() is same as return

  • TRUE
  • FALSE

2. What is correct order of precedence in C

  • Addition, Division, Modulus
  • Addition, Modulus, Division
  • Multiplication, Substration, Modulus
  • Modulus, Multiplication, Substration

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

4. Which operator in c can't be overloaded

  • %
  • +
  • ::
  • -

5. rand() function returns

  • float value
  • integer value
  • any type
  • none of above
Read more from - C Programming Questions Answers - Chapter 1