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.");





Comments and Discussions

Ad: Are you a blogger? Join our Blogging forum.
Learn PCB Designing: PCB DESIGNING TUTORIAL







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 some rights reserved.