CP I/O Q8

  • Option : D
  • Explanation : 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;
    }
Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *