The Leanpub 60 Day 100% Happiness Guarantee
Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.
See full terms...
Most C++ interview prep gives you trivia to memorize. This gives you 55 chapters of real interview questions with complete, runnable answers you can build with one command. Learn the object-oriented core well enough to explain it out loud, then walk into the room ready.
Interested in this book? Show your support by saying what you'd like to pay for it!
About the Book
The C++ Interview Companion, Volume 1 covers the object-oriented core of modern C++, the material that comes up first in nearly every C++ interview. It works through 55 chapters of real interview questions, and every answer ships with complete, runnable code you can build with a single command using g++ and -std=c++23. No fragments, no pseudo-code, no hand-waving.
You'll learn how objects actually behave: construction and destruction, copies and moves and the Rule of Five, value categories, polymorphism and virtual functions, inheritance done properly, and the real difference between is-a and has-a. You'll go under the hood into object lifetime, memory layout, struct padding, alignment, and bit manipulation. You'll master smart pointers from first principles, unique_ptr, shared_ptr, weak_ptr, and when each one is the right tool. And you'll work through templates, concepts, SOLID principles, design patterns, code smells, and refactoring, the topics that separate a junior answer from a senior one.
Every chapter follows the same rhythm. A plain-language short answer first, then a runnable program, then a "Somebody's Gotta Ask" exchange that handles the follow-up a sharp interviewer would actually throw at you, and a "Points to Remember" summary you can review the night before. The tone stays conversational, so you walk away with the reasoning, not just the fact.
This book is for C++ developers preparing for technical interviews, engineers returning to the language after time away, and anyone who wants to understand modern C++ well enough to explain it out loud.
All examples target modern C++ through C++23, compiled and verified, so what you read is what runs.
Prepare with it. Interview with it.
About the Author
Jeganathan Swaminathan, known as Jegan in the developer community, has spent over 26 years working in software as a consultant and trainer. He has worked at AMD, Oracle, and Siemens, consulted at Samsung and National Semiconductor, and delivered training for organisations like Bank of America, Wells Fargo, IBM, Verizon, Cisco, KPIT, Toshiba, Motorola Solutions, and Amdocs among others. He founded TekTutor, through which he delivers corporate and public training globally covering Java, Spring Boot, React, Kubernetes, Red Hat OpenShift, DevOps, and Microservices.
Jegan is a published author with Packt Publishing, having written Mastering C++ Programming among other titles. He has delivered several hundreds of training batches to software professionals who need practical, production-ready knowledge they can apply immediately on the job.
This four-volume series is a direct extension of that teaching philosophy. Every chapter is built around a real production-grade Netbanking application, so readers learn Spring Boot, React, MySQL, and Microservices architecture in a context that mirrors actual software projects, not isolated textbook examples.
Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.
See full terms...
We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.
(Yes, some authors have already earned much more than that on Leanpub.)
In fact, authors have earned over $15 million writing, publishing and selling on Leanpub.
Learn more about writing on Leanpub
If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).
Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.
Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.
Learn more about Leanpub's ebook formats and where to read them
You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!
Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.
Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.