asked
[MMORPG Game Development Series with C++ and Unreal] Part 1: Introduction to C++ Programming
Function Basics
Written on
·
277
0
int MultiplyBy2(int a)
{
int result = a * 2;
return 0;
}
이 부분에서 return 0 값을 왜 result 로 바꿔 줘야하는건가요?
혹시 a * 2로 바뀐 값을 리턴으로 보내줘서
선생님의 설명과 같이 a * 2 를 보내줘야 하기에 result를 넣는건가요?
Answer