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. rand() function returns

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

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

  • *
  • -
  • ,
  • .

3. Difference between structure and union is

  • We can define functions within structures but not within a union
  • We can define functions within union but not within a structure
  • The way memory is allocated
  • There is no difference

4. calloc() belongs to which library

  • stdlib.h
  • malloc.h
  • calloc.h
  • None of above

5. 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
Read more from - C Programming Questions Answers - Chapter 1