독개

[C#] 9화 연산자

by #독개#
/*왠만한거 다안다 == != <= >= || &&
 * ^(XOR)연산자 : 양쪽이 같으면 False, 다르면 True
 */
namespace _9화_연산자
{
    internal class Program
    {
        static void Main(string[] args)
        {
            bool Result;
            Result = true ^ false; //true
            Result = false ^ true; //true
            Result = true ^ true; //false
            Result = false ^ false; //false
        }
    }
}

블로그의 정보

독한 개발자

#독개#

활동하기