What will be the output of the following C code? [code] #include <stdio.h> int main() { int i = 0, j = 0; while

Ngô Thị Vân

New member
What will be the output of the following C code?
Code:
    #include <stdio.h>
    int main()
    {
        int i = 0, j = 0;
        while (i < 5, j < 10)
        {
            i++;
            j++;
        }
        printf("%d, %d\n", i, j);
    }
A. 5, 5
B. 5, 10
C. 10, 10
D. Syntax error
 

Tìm kiếm

Back
Top