강의

멘토링

커뮤니티

Inflearn Community Q&A

aosdb344448906's profile image
aosdb344448906

asked

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

Function Basics

15 분 45초 대 질문

Written on

·

301

0

int MultiplyBy2(int a)

{

int result = a * 2;

return 0;

}

이 부분에서 return 0 값을 왜 result 로 바꿔 줘야하는건가요?

혹시 a * 2로 바뀐 값을 리턴으로 보내줘서

선생님의 설명과 같이 a * 2 를 보내줘야 하기에 result를 넣는건가요?

C++

Answer

This question is waiting for answers
Be the first to answer!
aosdb344448906's profile image
aosdb344448906

asked

Ask a question