What will be output of the following C code? [code] #‎include‬ <stdio.h> int main() { int x=4, y, z; y = --x; z = x--;

Duyên Trương

New member
What will be output of the following C code?
Code:
#‎include‬ <stdio.h>
int main()
{
    int x=4, y, z;
    y = --x;
    z = x--;
    printf("%d, %d, %d\n", x, y, z);
    return 0;
}
A. 4,3,3
B. 3,3,3
C. 2,3,3
D. 4,4,3
 

Tìm kiếm

Back
Top