Getting Started With C

Welcome to this interactive tutorial on c programming. 

This course covers all the fundamentals of C programming, step by step. by the end, you will be comfortable programming in c.

"Hello World!" program

Let's write our first C program. we will write a program called "Hello world!". it is a simple that displays "Hello world" on the screen.


OUTPUT



 





If you get this output, congratulations because you have executed your first program.

Next, we will see how this program works in brief.

Working of the program

Here is the different sections of the "Hello, World!" program.

1. main( ) Function

A valid C program must include the main() function. The C compiler starts executing code from this function.

2. printf( ) Function

Inside the main() function, there is a print() function. This function displays the text inside quotations.

For printf() to work, we must use #include<stdio.h> in our program.

3. return 0;

The program ends with this statement.