You may have ever wondered that you can write a code in C without a semicolon, if yes then you are at the right place.

Here, this is a simple process by using if statement, you can print your Name.

How to print a “Name” without using a semicolon program.

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

Output:-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.

This article is written by our awesome writer
Comments to: C program to print a Name without using a semicolon

Your email address will not be published. Required fields are marked *

Attach images - Only PNG, JPG, JPEG and GIF are supported.

New Dark Mode Is Here

Sign In to access the new Dark Mode reading option.

Join our Newsletter

Get our monthly recap with the latest news, articles and resources.

By subscribing you agree to our Privacy Policy.

Latest Articles

Explore Tutorials By Categories

About

Codeverb is simply an all in one interactive learning portal, we regularly add new topics and keep improving the existing ones, if you have any suggestions, questions, bugs issue or any other queries you can simply reach us via the contact page

Login

Welcome to Codeverb

Ready to learn something new?
Join Codeverb!

Read Smart, Save Time
  •  
    Strength indicator
  •  
  •  
    Log In | Lost Password