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 among following is true about stack

  • stack cannot reuse its memory
  • all elements are of different datatypes
  • all operation done at one end
  • none of above

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

i = (int) x;
print i;

  • null
  • error
  • 10
  • garbage value

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

  • No
  • Yes

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

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