I came across a program that prints itself on this site, i.e. it prints the program code.
The program code is:
#include
char *program
Printf prints the string given as the first argument (in this case the string in *program
) substituting the other arguments where you have a %s or %c
%s means the arguement is a string, %c is a character.
As the note says, it uses %s to print a copy of the program string inside the program string - hence making a copy, and uses the %c to print the characters 10 (new line) and 34 "