카테고리 없음
04 삼항연산자 DK
DKOFI
2018. 7. 24. 08:23
728x90
▲
(조건) ? 참값 : 거짓값
c = (a>0) ? a : b --> a가 0보다 크면 a를 c에 담고 그렇지 않으면 b를 c에 담아라.
그냥 문법이니 외워둘 것.
---------------------------------------------------------------------
FirstTestFirstTestFirstTestFirstTestFirstTest
AppleAndroidAppleAndroidAppleAndroAppleAndroididAppleAndroidIosJellybeanIosJellybeanIosJellybeanIosJellybeanIosJellybeanIosJellybeanFirstTestFirstTestFirstTestFirstTestFirstTest
AppleAndroidAppleAndroidAppleAndroAppleAndroididAppleAndroidIosJellybeanIosJellybeanIosJellybeanIosJellybeanIosJellybeanIosJellybeanFirstTestFirstTestFirstTestFirstTestFirstTest
AppleAndroidAppleAndroidAppleAndroAppleAndroididAppleAndroidIosJellybeanIosJellybeanIosJellybeanIosJellybeanIosJellybeanIosJellybean
300x250