[ create a new paste ] login | about

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

C, pasted on Jul 3:
1
2
3
4
5
6
7
8
9
10
11
12
#include<stdio.h>
int main(){
int iVal = 0;
int x = -1, y = 1, z = 1, u;
if(iVal = ++x)
   u = iVal;
else
if(iVal = ++y && ++z)
   u = iVal;
printf("x=%d, y=%d, z=%d, u=%d",x,y,z,u);
return 0;
}


Output:
1
x=0, y=2, z=2, u=1


Create a new paste based on this one


Comments: