 Hello friends, I am Sanjay Gupta. In this video, I am going to demonstrate you how you can print a name without using semicolon in the program in C programming. Before starting, you can note my information. You can watch or subscribe my YouTube channel through this URL that is youtube.com slash sanjaygupta underscore tax school. You can download my programming app, TechMS, which is available on Google Play. Now coming on to the topic, this is very interesting question which is asked in various interview examinations that how you can print your name without using semicolon in the program. So I am going to implement a code for you so that you can understand how you can do this. First of all, I am including a header file that is STDI dot H then in main inside main function I have to implement a statement which will display a name but I don't have to use semicolon. So if I write simple printf and I print my name so with this printf statement I have to use semicolon so without sorry using only this printf statement I have to use semicolon so I can't remove this semicolon because it will create a syntax error. So now the solution is you can use if statement and you can enclose this printf statement inside parenthesis of if and then you can open curly braces of if statement and you can just close it. So this way I have not used any semicolon in this program and my name will be displayed on console so I am saving this code now I am executing it. You can see my name is displayed on console and I have not used semicolon in the program. So friends you can use printf in place of condition with if statement. We don't have to use any relational or logical operator every time in if statement we can simply use printf or scanf in if statement they work properly. So I hope you have understood the concept it is very easy and it is frequently asked in various interviews and examinations so do remember this that how you can print your name without using semicolon in the program you can do it with the help of if statement. So I hope you have understood the logic if you want to ask any query related to programming languages you can comment me in this video you can also watch various programming related videos through my youtube channel the URL is youtube.com slash sanjay gupta underscore tech school you can connect with me by following these details which are available in front of you you can download my programming app tech ms which is available on google play so keep connected with me watch programming related videos because programming is fun thank you for watching this video.