강의

멘토링

커뮤니티

Inflearn Community Q&A

unreal12341234's profile image
unreal12341234

asked

[C# and Unity MMORPG Game Development Series] Part4: Game Server

Session #3

구조체 메모리 관련

Resolved

Written on

·

331

1

강의 내용중에 C#에서 구조체는 new로 선언해도 메모리상 스택에 잡힌다고 하셨는데, C++에서도 구조체는 new로 선언하면 스택에 잡히는지 궁금합니다.

C#unitynetwork

Answer 2

1

Rookiss님의 프로필 이미지
Rookiss
Instructor

C++의 경우 class, struct 모두 new를 하면  heap 영역에 잡히게 됩니다.

0

unreal12341234님의 프로필 이미지
unreal12341234
Questioner

감사합니다 :D

unreal12341234's profile image
unreal12341234

asked

Ask a question