πŸ“Š C Programming
Q. What will be the output of the following C code? (Initial values: x= 7, y = 8)
Code:
#include <stdio.h>
    void main()
    {
        float x;
        int y;
        printf("enter two numbers \n", x);
        scanf("%f %f", &x, &y);
        printf("%f, %d", x, y);
    }
  • (A) 7.000000, 7
  • (B) Run time error
  • (C) 7.000000, junk
  • (D) Varies
πŸ’¬ Discuss
βœ… Correct Answer: (C) 7.000000, junk

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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