인프런 영문 브랜드 로고
인프런 영문 브랜드 로고

Inflearn Community Q&A

포카's profile image
포카

asked

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

Function Basics

15 분 45초 대 질문

Written on

·

277

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!
포카's profile image
포카

asked

Ask a question