C C++ Java Data Structure Python JavaScript CSS Ajax PL/SQL PHP Puzzles C programs C++ programs Java programs

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


printf("Hello world.");

You may also be interested in...

C/C++ Tips and Tricks...

Was this page helpful? YES NO

Are you a blogger? Join our Blogging forum.

Comments and Discussions