Comprehensive C/C++ Interview Question Collection Covering Language, Data Structures, OS, Networking, Databases, and More
This article compiles over a thousand common C/C++ interview questions spanning language fundamentals, data structures, algorithms, system programming, networking, databases, design patterns, RPC, and audio‑video development, providing a thorough study guide for backend and systems engineers.
The document presents a large set of interview questions and topics frequently asked in C/C++ backend, desktop, embedded, and audio‑video development interviews.
C/C++ Language
Smart pointers, polymorphism, virtual functions, STL principles
Memory layout, RAII, object lifetimes, copy/move semantics
C++11/14 features, constexpr, lambda, templates, inline, const correctness
Compilation process, GCC/G++, debugging with GDB
Data Structures & Algorithms
Arrays, linked lists, trees, sorting algorithms, hash tables, Bloom filters
Dynamic programming, priority queues, graph algorithms, complexity analysis
System Programming & OS
Processes, threads, synchronization primitives, memory pools, virtual memory
Fork, copy‑on‑write, deadlock, scheduling, kernel vs user threads
Network Programming
TCP/UDP fundamentals, three‑way handshake, congestion control, HTTP/HTTPS, HTTP/2/3
epoll, select, poll, reactor/proactor models, packet framing, TCP time‑wait
Databases
MySQL storage engines, indexing, isolation levels, ACID, MVCC, binlog, sharding
Redis data structures, persistence, clustering, distributed locks, performance
Design Patterns & Architecture
Singleton, factory, abstract factory, decorator, adapter, observer, strategy, state, iterator, composite, bridge, chain of responsibility, command
RPC concepts, serialization, service discovery, load balancing, versioning, gRPC
Server Development & Distributed Systems
Authentication (JWT), distributed locks, snowflake ID, connection pooling, load balancing
Timer implementations, heart‑beat, high‑concurrency designs
Audio/Video Development
Encoding/decoding basics, codecs (H.264, HEVC), sampling rate, bitrate, latency
RTP, RTSP, WebRTC, ABR, container formats, synchronization, noise reduction
Overall, the collection serves as a comprehensive reference for preparing for technical interviews in C/C++ and related system domains.
Deepin Linux
Research areas: Windows & Linux platforms, C/C++ backend development, embedded systems and Linux kernel, etc.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.