C output type question

Q.  What will be the output of the following program?

void main()
{
int x=300*400/300;
printf("%d",x);
}

- Published on 17 Jun 15

a. 300
b. None of these
c. 400
d. 100

ANSWER: 400

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