Here is source code of the C Program to print a semicolon without using a semicolon anywhere in the code The C program is successfully compiled and run on a Linux system. The program output is also shown below.
* C Program to Print a Semicolon without using a Semicolon
* anywhere in the code
//59 is the ascii value of semicolumn
if (printf("%c ", 59))
$ cc pgm46.c $ a.out ;
Sanfoundry Global Education & Learning Series – 1000 C Programs.