πŸ“Š C Programming
Q. What will be the output of the following C code? (Initial values: p= 10, q = 12)
Code:
#include <stdio.h>
    void main()
    {
        float p;
        int q;
        printf("Enter two numbers: ", p);
        scanf("%f %f", &p, &q);
        printf("%f, %d", p, q);
    }
  • (A) 10.000000, 12
  • (B) 12, 10.000000
  • (C) 12, Garbage value
  • (D) 10.000000, Garbage value
πŸ’¬ Discuss
βœ… Correct Answer: (D) 10.000000, Garbage value

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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