Fundamentals 19 min read

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.

Deepin Linux
Deepin Linux
Deepin Linux
Comprehensive C/C++ Interview Question Collection Covering Language, Data Structures, OS, Networking, Databases, and More

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.

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

Operating SystemsdatabasesAlgorithmsNetworkinginterview-questionsC++
Deepin Linux
Written by

Deepin Linux

Research areas: Windows & Linux platforms, C/C++ backend development, embedded systems and Linux kernel, etc.

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.