πŸ“Š C Programming
Q. What will be the output of the following C code?
Code:
#include <stdio.h>
    void main()
    {
        double n = 23458965.12124;
        int m = n;
        printf("%d", m);
        printf("  %lf", m);
    }
  • (A) 23458965, 0.000000
  • (B) Compilation Error
  • (C) Runtime Error
  • (D) None of the mentioned
πŸ’¬ Discuss
βœ… Correct Answer: (A) 23458965, 0.000000

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
189
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Monu Rathod
Publisher
πŸ“ˆ
89%
Success Rate