Home / Programs / My First Program In C: Hello World!!
🚀 Programming Example

My First Program In C: Hello World!!

👁 71,042 Views
💻 Practical Program
📘 Step Learning
In this section we will learn that how to write first program in C programming language. hello world!!

📌 Information & Algorithm

In this section we will learn that how to write first program in C programming language. hello world!!

💻 Program Code

#include"stdio.h"

int main() {
   /* my first program in C */
   printf("Hello, World! \n");
   
   return 0;
}
                        

🖥 Program Output

Hello, World!
                            

📘 Explanation

This is our first program in c Programming Language

 #include"stdio.h"

"stdio.h" is basically a predefined standard input output library Which contain functions, marcos and variables.

#include"stdio.h" defines that it is including stdio.h library files with this program.

"printf" is a predefined function which is used to display something on the screen. In this program we want to display "Hello, World!" .

There are four types of functions in C :

1) function with arguments and return value

2) function with arguments and no return value

3) function with no argument and return value

4) function with no argument and no return value

'return value' means, the process or function after performing the certain operation gives you back a resultto the parent function from which it is being called. Actually, main is the parent function of all the functions in C. If we do not need any return value we use return type void but here we use return type int.

return 0 defines that, it will returns 0 .

📚 Learning Subject

Master Programming Through Practical Examples

Improve your coding logic, problem-solving skills and programming confidence by practicing real-world examples with explanations.

🎯 How to learn from this example

First understand the algorithm carefully. Then study the program line-by-line and compare it with the output. Finally, review the explanation section to strengthen your logic and programming understanding.

🔥 Practice suggestion

Rewrite the program without looking at the code. Modify values, conditions or logic and run it again. This helps improve confidence and strengthens coding skills much faster.