강의

멘토링

커뮤니티

Inflearn Community Q&A

lie020284477's profile image
lie020284477

asked

[MMORPG Game Development with C++ and Unreal Series] Part 1: Introduction to C++ Programming

The beginning of object orientation

할당된 메모리를 감싸는 'cccccccc' 질문 드립니다

Written on

·

337

0

멤버변수

int hp; 하나만 지정 하고

a.hp=1;

b.hp=2;

식으로 a,b 로 각각 대입했을때 메모리가

 

cccccccc

0000002

cccccccc

cccccccc

0000001

cccccccc

 

식으로 메모리가 올라오는데 감싸고 있는 'cccccccc' 의미가 있는 값인가요?

c++

Answer 1

0

Rookiss님의 프로필 이미지
Rookiss
Instructor

디버그 모드에서 일부러 고정 쓰레기값을 넣어서
CCC가 바뀌면, 그것을 오버플로우로 인식해서 크래시를 냅니다.

lie020284477's profile image
lie020284477

asked

Ask a question