What will be the output of the following C code? [code] #include <stdio.h> int main() { int p = 10, q = 20, r;

Ngọc Trâm

New member
What will be the output of the following C code?
Code:
    #include <stdio.h>
    int main()
    {
        int p = 10, q = 20, r;
        if (r = p = 5 || q > 20)
            printf("%d", r);
        else
            printf("No Output\n");
    }
A. 1
B. 10
C. 20
D. No Output
 

Tìm kiếm

Back
Top