What is the output of x, when x = (y = 7, z = 8); in C

1 Answer

0 votes
#include <stdio.h> 

int main(void)
{
    int x, y, z;
    
    x = (y = 7, z = 8);
    printf("x = %i\n", x);
            
    return 0;
}


/* 
run:

x = 8

*/




answered Sep 15, 2014 by avibootz
edited Sep 15, 2014 by avibootz
...