4. 1st Impression
C Python
int i = 7; i = 7
int j = 11; j = 11
int temp; i, j = j, i
temp = i;
i = j;
j = temp;
5. 1-Liner = 1 Line of Code
JavaScript Array Summation
a = [1, 1, 2, 3, 5, 8, 13];
for(var s=i=0;(b=a[i++])?s+=b:alert(s););
6. But NOT This Kind of 1 Line!
for(int i = 0; i < 100; i++) { printf
("hellon"); if(i == 42) break; }
Cause this is actually:
for(int i = 0; i < 100; i++) {
printf("hellon");
if(i == 42)
break;
}