download Mastguru Android App

Question Detail

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

i = (int) x;
print i;

  • null
  • error
  • 10
  • garbage value
Similar Questions :

1. What is correct order of precedence in C

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

2. Adding to a pointer that points to an array will

  • Cause an error
  • Increase the value of the element that the pointer is pointing to
  • Cause the pointer to point to the next element in the array
  • None of above

3. rand() function returns

  • float value
  • integer value
  • any type
  • none of above

4. Can getch() be used to echo the input

  • Yes
  • No

5. A member is a

  • Variable in a structure
  • Datatype of structure
  • Structure pointer
  • None of above
Read more from - C Programming Questions Answers - Chapter 1
Post a comment