Predict the output of the following code.
#include <stdio.h>
int main()
{
        int i = 4, j = -1, k = 0, w, x, y, z ;
        w = i || j ||k ;
        x = i && j && k ;
        y = i || j && k ;
        z = i && j || k ;
        printf( " w = %d , x = %d , y = %d, z = %d \n" , w,x,y,z) ;
        return 0;
}

Posted on by