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 wild pointer in c

  • a pointer which we need to write in future
  • a pointer which has bad naming convention
  • a pointer which has no limit
  • a point which has not initialized

2. What will be the output of following program
#include
main()
{
int x,y = 10;
x = y * NULL;
printf(\"%d\",x);
}

  • error
  • 0
  • 10
  • Garbage value

3. Structures can be used

  • to hold different datatypes
  • have pointers to structures
  • to assign to one another
  • all of above

4. We can insert pre written code in a C program by using

  • #read
  • #get
  • #include
  • #put

5. Which operator has the highest priority

  • ()
  • []
  • *
  • /
Read more from - C Programming Questions Answers - Chapter 1
Post a comment