C/C++ program that prints its own source code as its output

The main purpose of interview questions about quine programs is usually to see whether you’ve come across them before. They are almost never useful in any other sense. The code above can be upgraded modestly to make a C99-compliant program (according to GCC), as follows: Compilation /usr/bin/gcc -O3 -g -std=c99 -Wall -Wextra -Wmissing-prototypes \ -Wstrict-prototypes … Read more