C Programming: Hello World

C भाषा क्या है?

C एक general-purpose programming language है जिसे 1972 में Dennis Ritchie ने Bell Labs में develop किया था।
It is one of the oldest and most powerful languages still widely used today.



C की खास बातें (Key Features):

[i]  Fast and efficient performance
[ii]  Portable and flexible
[iii]  System software और embedded systems में इस्तेमाल
[iv]  C++, Java जैसी भाषाओं की नींव



Hello World Program क्या है 

"Hello, World!" एक traditional पहला प्रोग्राम है जो हर नया प्रोग्रामर लिखता है।

➡️ इसका मकसद होता है:

[i] Programming syntax को समझना
[ii] Output देखने की प्रक्रिया सीखना
[iii] Coding का आत्मविश्वास बनाना



Hello World, का कोड in C

#include<stdio.h>

int main() {

    printf("Hello, World!\n");

    return 0;

}



Line-by-Line Code

 

Code Line

Meaning

#include <stdio.h>

यह एक header file है जो input/output के लिए जरूरी functions (जैसे printf) उपलब्ध कराती है।

int main()

यह function प्रोग्राम की entry point होता है।

printf("Hello, World!\n");

Prints the message on the screen. \n means new line.

return 0;

Indicates successful program termination.




Output क्या आएगा?

 

Hello, World!



ऑनलाइन C कोड रन कैसे करें?

 

C कोड रन करने के लिए onlinegdb.com पर जाएं और कोड पेस्ट करें।



प्रैक्टिस के लिए छोटा टास्क

 

 स्क्रीन पर अपना नाम प्रिंट करने वाला C प्रोग्राम बनाइए।

#include <stdio.h>


int main() {

    printf("Hello, I am [आपका नाम]!\n");

    return 0;

}









Comments

Popular Posts

HTML Introduction

HTML Text Editors

CREATE DATABASE

You might like

Quick Learn Code by PK

Quick Learn Code by PK (@QLCbyPK) एक उपयोगी और beginner-friendly platform है, जहाँ आप HTML, CSS, Bootstrap, JavaScript, jQuery, PHP, CodeIgniter, C, C++, और SQL जैसी programming languages आसानी से सीख सकते हैं।


Follow us