[ create a new paste ] login | about

Link: http://codepad.org/sknsEk3i    [ raw code | output | fork ]

C++, pasted on Sep 22:
1
2
3
4
5
6
7
8
9
10
11
int main()
{
    int x=0, y=10, z=11;
    
    if (x = 1, y = 2);
    z = (x=1, y=3);

    printf("Value of x = %d, y = %d, z=%d", x, y, z);

    return 0;
}


Output:
1
Value of x = 1, y = 3, z=3


Create a new paste based on this one


Comments: