This is your first C programme to print hello world.

#include <stdio.h>


void main()


printf(“Hello World”);


//This programme introduces you to printf it is a built in C keyword to display output on the userscreen.Inside printf is a string embedded after which a semicolon has to be placed this instructs the compiler to end or execute the print function//

//The hello world text embedded inside the double strings are known as strings.The programme can input string as he likes.//

//These are comments which start with 2 double slashes and end with double slashes.//


Here is a small task for you make a C programme to display well done on the screen and write comments.

We will learn more about C in the next posts.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.