Notice
Recent Posts
Recent Comments
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 | 31 |
Tags
- 코딩
- java
- 백준
- java정리
- C++
- 모의 주식
- 개발자
- 프로그램
- 빅데이터
- 코딩독학
- 개인프로젝트
- backend
- Project
- 개발
- SNS
- 자바정리
- 코딩테스트
- 주가예측
- 자바독학
- 이웃한 칸
- 코테
- 프로그래밍
- Python
- 사물인터넷
- 풀스택프레임워크
- 코스닥
- 자바
- Reflex
- frontend
- 프로그래머스
Archives
- Today
- Total
Creative Code
pointer3.cpp(reinterpret_cast) 본문
#include <stdio.h>
int main(void)
{
int a = 0x12345678;
char *p;
//p = (char*) &a;
p = reinterpret_cast<char *>(&a); //강제 형 변환 static_cast가 안될 때
printf("*p : 0x%x\n",*p);
return 0;
}
'C++ Programming' 카테고리의 다른 글
shape(dynamic_cast) (0) | 2023.09.08 |
---|---|
string4(const_cast) (0) | 2023.09.08 |
genderRatio.cpp(static_cast) (0) | 2023.09.08 |
safeArray4(try-throw-catch) (0) | 2023.09.08 |
swap2(template 함수) (0) | 2023.09.08 |