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

Nguyễn Hào

New member
What will be the output of the following C code?
Code:
    #include <stdio.h>
    int main()
    {
        int i = 0;
        while (i = 0)
            printf("True\n");
        printf("False\n");
    }
A. True (infinite time)
B. True (1 time) False
C. False
D. Compiler dependent
 

Tìm kiếm

Back
Top