Simple C++ Programs

This section contains simple C++ programs that are typically asked in technical interviews. The questions have been gleaned from various sources on the web. Solutions were coded and tested on a development environment consisting of a laptop running 64-bit Windows 7 home premium edition, MinGW g++ compiler and Eclipse IDE. Each code snippet can be compiled and executed independently without dependency on other files. This has been deliberately done to be instructive. 

Even though these programs are quite simple, they cover some of the very basic data structures and algorithms in computer science.

Subpages (32): View All
Comments