Home » C Programming » Data Types » Question
  1. What will be the output of the following C code?
    #include <stdio.h>
    void main()
    {
    double n = 23458965.12124;
    int m = n;
    printf("%d", m);
    printf(" %lf", m);
    }
    1. 23458965, 0.000000
    2. 0.000000, 23458965
    3. Compilation Error
    4. Runtime Error
    5. None of these
Correct Option: A

23458965, 0.000000



Your comments will be displayed only after manual approval.