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...
http://ww-tikus.blogspot.com/2015/01/how-to-make-hello-world-program-in-c.html
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.
Make sure you can use gcc Command in your Command Prompt.
http://dewangebet77.com/ sebagai Agen Sbobet Terpercaya, Agen Judi Bola Online dan Sbobet Live Casino di Indonesia
ReplyDelete