How to Make a Hello World Program in C

Hello World program in C is a program that usually is made at the first time when a person want to learn C Language. This is a very simple p...

Hello World program in C is a program that usually is made at the first time when a person want to learn C Language. This is a very simple program. If you run this program, you will see a "Hello World" text in your screen.


This is the source code Hellow World program in C Language :
#include<stdio.h>
main()
{
          printf("Hello World");
}
In the first line, you see #include<stdio.h>, this is a library standard input output in C Language. With this library, you can use input and output method in your program.

In the second line, there is main() method, this method is used for the execution of the program. What will do by this program is determined by this main method. In C Language, the method uses open bracket { and close bracket }.

printf("Hello World"), and this is the output method that writes "Hello World" text in the screen. As you can see, the text inside printf() is "Hello World". If you writes something inside the printf(), then you will see that output in your screen.

After you make your Hello World program (Ex : HelloWorld.c), compile it with Command Prompt.

gcc -o <program_name> HelloWord.c

And run your program,

<program_name>

Make sure you can use gcc Command in your Command Prompt.


PLEASE LIKE OUR FACEBOOK FANPAGE close button

Related

How to Make a Hello World Program in C++

The hello world program in C++ contains the basics components in C++ program. Hello World Program is a program that will display "Hello World" text in the screen. This program is usually made when you want...

How to Make a Hello World Program in PHP

In the previous post, i explained about Hello World program in Java. And now, i will explain about how to make a Hello World Program in PHP. In PHP language, Hello World program can be made by a very simple cod...

How to Make a Hello World Program in Java

This is the first post in my "new" blog. Actually, this blog was a mixed Niche which has no clear topic. Build in 2010 and has more than 1000 posts, this blog has no significant results in page views. It just ...

Post a Comment

To insert image or video : [img]image-link[/img] or [video]video-link[/video]

emo-but-icon
:noprob:
:smile:
:shy:
:trope:
:sneered:
:happy:
:escort:
:rapt:
:love:
:heart:
:angry:
:hate:
:sad:
:sigh:
:disappointed:
:cry:
:fear:
:surprise:
:unbelieve:
:shit:
:like:
:dislike:
:clap:
:cuff:
:fist:
:ok:
:file:
:link:
:place:
:contact:

idlol.tv

RecentPopularRandom

Recent

6 Ways to Make Money Blogging

Everyone can create a blog and it isn't difficult. However, if we talk about making money from a blog, probably many blogger still don't understand how to do it. Monetize a blog is not easy for a beginner blogg...

How to Make a Hello World Program in C++

The hello world program in C++ contains the basics components in C++ program. Hello World Program is a program that will display "Hello World" text in the screen. This program is usually made when you want...

Tips to Make Your Blog Look More Professional

First impressions seen by the reader when reading the blog content is about the appearance. A good looking blog will make the readers comfortable in reading the content of your blog. Besides, your good design b...

The Best Placement for PPC Adsense

The position determining achievement , maybe that's a term that is suitable to describe the positioning of Adsense . Because of the better place of adsense location, income would be better. Good Adsense placeme...

How to Make a Hello World Program in C

Hello World program in C is a program that usually is made at the first time when a person want to learn C Language. This is a very simple program. If you run this program, you will see a "Hello World" text in ...

How to Make a Hello World Program in PHP

In the previous post, i explained about Hello World program in Java. And now, i will explain about how to make a Hello World Program in PHP. In PHP language, Hello World program can be made by a very simple cod...

How to Make a Hello World Program in Java

This is the first post in my "new" blog. Actually, this blog was a mixed Niche which has no clear topic. Build in 2010 and has more than 1000 posts, this blog has no significant results in page views. It just ...

Popular

Random

item