C++ output type question

Q.  void main()
{
float x=5,y=2;
int result;
result=x % y;
cout << result;
}

- Published on 23 Jun 15

a. 1
b. 2.5
c. 1.0
d. Error

ANSWER: Error

Post your comment / Share knowledge


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)