filmov
tv
C Programming Tutorial: How To Make a Hello World Program

Показать описание
C Programming Tutorial: How To Make a Hello World Program
In this tutorial I show you my favorite text editor for windows and how to make a simple hello world c program.
once you have installed notepad++, open it up and click language at the top of it and select c. Now it is ready for you to begin coding, start the program by typing a comment with your name and the purpose of the program
ex.
/*
Programmer: Genie365
Purpose: Hello world
*/
Now we must type the preprocessor directive which for a simple text displaying program will be
#include stdio.h
(there should be greater than and less than signs around stdio.h, but youtube does not allow this in their descriptions). After you have that typed out you will input the main function which is
int main(void)
Put curly brackets (also not allowed in YouTube descriptions D: ) after this and type
printf("Hello World\n"); inside of them
the printf obviously prints the text and the n is for a new line so hello world is the only thing on that line
after that you will simply have to check your program with a compiler
In this tutorial I show you my favorite text editor for windows and how to make a simple hello world c program.
once you have installed notepad++, open it up and click language at the top of it and select c. Now it is ready for you to begin coding, start the program by typing a comment with your name and the purpose of the program
ex.
/*
Programmer: Genie365
Purpose: Hello world
*/
Now we must type the preprocessor directive which for a simple text displaying program will be
#include stdio.h
(there should be greater than and less than signs around stdio.h, but youtube does not allow this in their descriptions). After you have that typed out you will input the main function which is
int main(void)
Put curly brackets (also not allowed in YouTube descriptions D: ) after this and type
printf("Hello World\n"); inside of them
the printf obviously prints the text and the n is for a new line so hello world is the only thing on that line
after that you will simply have to check your program with a compiler