027. 조건 연산자 이해하기(?:)027. 조건 연산자 이해하기(?:)

Posted at 2010. 11. 12. 03:10 | Posted in Computer/초보자를 위한 C 언어 300제
#include <stdio.h>

main()
{
	int x = 1;
	int y = 2;
	int max;

	max = x > y? x : y;
}

max = x > y? x : y > 5? y : x + y;

//