C examples for Language Basics:printf
To insert a single quote into your outputted text, use the escape sequence \'.
#include <stdio.h> int main()//from ww w . j av a2 s .c om { printf("\nA single quote looks like \'\n"); return 0; }