Question Detail

What is correct order of precedence in C

  • Addition, Division, Modulus
  • Addition, Modulus, Division
  • Multiplication, Substration, Modulus
  • Modulus, Multiplication, Substration
Similar Questions :

1. If (*p) and **p is same

  • No
  • Yes

2. Difference between calloc() and malloc()

  • calloc() takes a single argument while malloc() needs two arguments
  • malloc() takes a single argument while calloc() needs two arguments
  • malloc() initializes the allocated memory to ZERO
  • calloc() initializes the allocated memory to NULL

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

i = (int) x;
print i;

  • null
  • error
  • 10
  • garbage value

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

  • integer
  • int
  • null
  • none of above

5. Which operator in c can't be overloaded

  • %
  • +
  • ::
  • -
Read more from - C Programming Questions Answers - Chapter 1