What will be the output of the following C code? [code] #include <stdio.h> void main() { int k = 8; int m =

What will be the output of the following C code?
Code:
    #include <stdio.h>
    void main()
    {
        int k = 8;
        int m = 7;
        int z = k < m ? k = m : m++;
        printf("%d", z);
    }
A. Run time error
B. 7
C. 8
D. Depends on compiler
 

Tìm kiếm

Back
Top