C program to print a Name without using a semicolon

You may have ever wondered that you can’t write a single without a semicolon in C, if yes then you are at the right place. Here, this is a simple process by using only if the condition you can print your Name.

How to print a “Name” without using a semicolon

#include<stdio.h> int main() { if (printf("Your Name") ) { } }


Your name

Explanation of Program :

In C programming if(something) written like this. It means if statement contains some value then it will evaluate it first, and will print the message first.
if( printf(“Your message”) ) here, if statement only checks the true condition.