C Program to Print Semicolon without using Semicolon

bookmark

/*
 * C Program to Print a Semicolon without using a Semicolon
 * anywhere in the code
 */
#include <stdio.h>
 
int main(void)
{
    //59 is the ascii value of semicolumn
    if (printf("%c ", 59))
    {
    }
    return 0;
}

 

Output

 

;