C/C++ Cheatsheet#
C and C++ continue to evolve with new standards that bring modern features while maintaining the performance and control that make these languages essential for systems programming. This cheatsheet focuses on collecting useful code snippets and practical examples, covering everything from language fundamentals to advanced topics like coroutines, CUDA programming, and lock-free data structures. Examples are organized by topic with source code available in the repository for building and experimentation.
Whether you’re refreshing your memory on pointer arithmetic, exploring modern C++23 features, debugging a tricky memory issue with Valgrind, or figuring out how to set up a CMake project, you’ll find practical examples here. The goal is simple: provide clear, working code that you can understand and adapt for your own projects. Contributions and suggestions are always welcome on GitHub.