Joreg (joreg) wrote,
Joreg
joreg

Code WTF 4

#include <cstdio>
 
int main() {
	int a,b;
	true ? a=1, b=1 : a=2, b=2;
	printf("a = %d, b = %d\n", a, b);
}

a = 1, b = 2
Tags: c++
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 1 comment