강의

멘토링

커뮤니티

Inflearn Community Q&A

jjmjjj031605's profile image
jjmjjj031605

asked

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

TextRPG #3

nullptr 관련 질문

Written on

·

230

0

  • 시드값을 정할 때,     srand((unsigned) time(nullptr));라고 하였는데, 0 대신 nullptr을 쓴 이유가 있을까요? nullptr은 포인터와 함께 쓰여져야 하는 것 아닌가요???
nullptrC++

Answer 1

0

Rookiss님의 프로필 이미지
Rookiss
Instructor

https://cplusplus.com/reference/ctime/time/

검색하는 습관을 생활화합시다!
time은 포인터를 인자로 받습니다.

jjmjjj031605's profile image
jjmjjj031605

asked

Ask a question