JSJaewon Shininjaewondevlog.hashnode.dev·Apr 29, 2025 · 2 min read🧠 Understanding typedef vs using in Modern C++When learning C++, you’ll often com across two different ways to create type aliases: typedef and using. They serve the same purpose — to give a new name to an existing type — but there are important differences that make using the preferred choice i...00
JSJaewon Shininjaewondevlog.hashnode.dev·Apr 21, 2025 · 1 min readWhy should we use nullptr instead of NULL or 0?In modern C++, using nullptr is preferred over NULL or 0 when dealing with pointers. Here’s why: The type of nullptr is std::nullptr_t. std::nullptr_t can be implicitly converted to any pointer type, but not to an integer. Because of this, nullptr...00