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 prototype of a function in C

  • It is the return type of a function
  • It is the return data of the function
  • It is declaration of a function
  • It is a datatype

2. What will be output of
#include
void main()
{
char test =`S`;
printf("\n%c",test);
}

  • S
  • Error
  • Garbage value
  • None of above

3. Which operator has the highest priority

  • ()
  • []
  • *
  • /

4. Which operator in c can't be overloaded

  • %
  • +
  • ::
  • -

5. What is the purpose of getc()

  • read a character from STDIN
  • read a character from a file
  • read all file
  • read file random
Read more from - C Programming Questions Answers - Chapter 1
Post a comment