Pointers in C++ — From Raw Pointers to Smart Pointers (Complete Tutorial)
A unique_ptr is 8 bytes — exactly the same as a raw pointer. Pointers from declaration to ownership, with every claim compiled and measured.
Programming powers modern technology — from desktop software and websites to mobile apps, games and enterprise systems. Strong programming skills remain essential for developers, students and technology professionals building modern digital solutions.
MYCPLUS has been publishing programming tutorials, source code examples and practical development guides since 2004. This programming hub brings together tutorials for C, C++, C#, Java, JavaScript, PHP and Python, along with game development and real-world coding examples designed for hands-on learning.
You will find beginner-friendly programming tutorials, practical source code examples and advanced development guides covering object-oriented programming, debugging, modern programming techniques and professional software development practices. Whether you are learning your first language, improving coding skills or exploring modern development technologies, this section provides structured resources for real-world programming and software engineering.
Why MYCPLUS: One of the web’s longest-running programming resources — trusted since 2004 with hundreds of tutorials, practical coding guides, source code examples and developer learning resources designed for real-world programming skills.
A unique_ptr is 8 bytes — exactly the same as a raw pointer. Pointers from declaration to ownership, with every claim compiled and measured.
scanf(“%s”) wrote 31 bytes into an 8-byte buffer. A guide to C I/O that shows the unsafe patterns failing rather than just naming them.
One virtual function grew a class from 4 bytes to 16. Three kept it at 16. What vtables cost, measured, plus the destructor rule nobody mentions.
C++17 was ratified in 2017, not proposed. The features that changed everyday C++, each compiled and run, plus the one that can make code slower.
Forget WSAStartup and every call fails with 10093. A modern Winsock2 tutorial: dual-stack TCP, RAII, and the six real Windows differences.
ONNX Runtime from Python beat LibTorch from C++. Four runtimes measured, and what the C++ advantage in ML inference actually consists of.
One definition, three functions in the binary. A measured guide to templates, from deduction through concepts and the errors they produce.
Why == silently fails on C strings, how to read strcmp’s return value correctly, and the safe input pattern the comparison depends on.
Why writing to one of these two identical-looking declarations crashes, what array decay does to sizeof, and what std::string changes.
Fifty places to find C and C++ source code, grouped by purpose: language reference, real production projects, curated libraries, and graded practice.
The 1998 C++ standard consists of two parts: the core language and the C++ standard library; the latter includes most
Nine free C and C++ resources, checked for whether they are actually free, actually maintained, and actually teaching modern C++.