비트연산 XOR

Jmnote (토론 | 기여)님의 2019년 3월 23일 (토) 11:48 판
bitwise XOR
비트연산 XOR

1 C

#include<stdio.h>
int main() {
   printf("%d",5^6); // 3
}

2 Java

System.out.println( true ^ true ); // false
System.out.println( true ^ false ); // true
System.out.println( false ^ true ); // true
System.out.println( false ^ false ); // false

System.out.println( 5 ^ 6 ); // 3

3 PHP

echo 5 ^ 6;
# 3

4 Python

print( 5 ^ 6 )
# 3

5 같이 보기

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}