BASIC4MCU | 질문게시판 | xor 연산방법 질문
페이지 정보
작성자 master 작성일2018-09-05 10:25 조회7,322회 댓글0건
https://www.basic4mcu.com/bbs/board.php?bo_table=gac&wr_id=2913
본문
#include<stdio.h>void main() {
char m,secure,key;
m = 0x15;
key = 0x37;
secure = m ^ key;
printf("%lf", &secure);
}xor 연산을 하고 싶은데 연산이 안 되네요. 변수 secure 값이0001 01010011 0111 xor----------0010 0010 == 0x22여야 하는데 0.000000만 나오네요//#include <stdio.h>//void main(){unsigned int m,secure,key;m=0x15;key=0x37;secure=m^key;printf("%02X",secure);}
#include <stdio.h>//void main(){unsigned int m,secure,key;m=0x15;key=0x37;secure=m^key;printf("%02X",secure);//secure=m^key;printf("%02X",secure);}
댓글 0
조회수 7,322등록된 댓글이 없습니다.