Home / CSE MCQs / C-MCQs :: Discussion

Discussion :: C-MCQs

  1. What is the output of this C code?
     (7 and 8 are entered)

        void main()
        {
            float x;
            int y;
            printf("enter two numbers \n", x);
            scanf("%f %f", &x, &y);
            printf("%f, %d", x, y);
        }
  2. A.
    7.000000, 7
    B.
    Run time error
    C.
    7.000000, Junk
    D.
    Varies

    View Answer

    Workspace

    Answer : Option C

    Explanation :

    None.


Be The First To Comment