Home / Programming MCQs / C Programming MCQs / Question

G

Geetam • 5.95K Points
Tutor III

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

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.