Home » C programming language

How to print printf("Hello world."); using printf() in c programming



Here we will learn how to print printf("Hello world."); in c programming language using printf() function?

Before, printing this statement, learn how we can print " (double quote) in c programming?

Printing " (double quote)

There is a escape sequence character \" (slash double quote), which is used to print " (double quote).

In \" - \ tells to the compiler that " (double quote) is not for syntax to start or close the printf statement, this double quote is to print on the output device.

Now consider the program which will print the printf("Hello world."); as output

#include <stdio.h>
int main()
{
	printf("printf(\"Hello world.\");");
	printf("\n");
	return 0;	
}

Output

printf("Hello world.");





Quick links:
C FAQ(s) C Advance programs C/C++ Tips & Tricks Puzzles JavaScript CSS Python Linux Commands PHP Android Articles More...

Was this page helpful? Please share with your friends...

Are you a blogger? Join our Blogging forum.

Comments and Discussions




Languages: » C » C++ » C++ STL » Java » Data Structure » C#.Net » Android » Kotlin » SQL
Web Technologies: » PHP » Python » JavaScript » CSS » Ajax » Node.js » Web programming/HTML
Solved programs: » C » C++ » DS » Java » C#
Aptitude que. & ans.: » C » C++ » Java » DBMS
Interview que. & ans.: » C » Embedded C » Java » SEO » HR
CS Subjects: » CS Basics » O.S. » Networks » DBMS » Embedded Systems » Cloud Computing » Machine learning » CS Organizations » Linux » DOS
More: » Articles » Puzzles » News/Updates


© https://www.includehelp.com (2015-2018), Some rights reserved.