Programming in C MCQ - I/O Operations
This statement is undefined behavior because the argument has to be of type double and 9 / 5 is of type int.
Following program yields an output of 1.8
int main()
{
printf("%f",9/5.0);
return 0;
}
Saved in this browser. Nothing changes for anyone else.