Course C Initial – 1st. First Program


Lesson 1.
Hello again! Now you’ll see how make your first program in C language. To it, we will use the library <stdio.h> (show Libraries for more information), open your compiler or notepad and type these things:
#include <stdio.h>
int main() {
printf (“Hello World”);
}
Below, you can see this program in the compiler:
Note: I present to you the way to make comments in a code in C. You can use ‘//’ for comments in an only line or ‘/* */ for comments more than one line.
Look this:
The image is commented, a note: in C, never forget use ‘;’ in your softwares. After we'll compile and execut it. Look the console print.
That's a simple software, make it and test.
Well, that’s all folks!
 

Comentários

More Famous Posts

Course C Initial 7th – Training with Math

Course C Initial – 3rd Variables Part. 1

Course Python For Life 3 – Input Command