C Language Program Complete Structure Example in Hindi- Learn C programming In Hindi ki iss series me aaj ki post me hum jaanege “c program complete structure.
C programming language ka basic part agar humne dhayn se sikh liya toh advance me itni problem nahi aane wali, mai kisi bhi chiz ko sikhne ke liye uske basic part par jayda dhayan deta hu taaki ek baar basic part clear ho gaya toh asi koi bhi programming language nahi jo aap sikh nahi sakte.
C Language Program Example-
C language ka program in chizo se milkar banta hai-
- Preprocessor Directive
- Variable
- Function
- Comments
- Statements & Expressions
Read also:- Basic Terms Of C Programming Language
First Hello world program in C programming Language
[code language=’C’]
#include
#include
/ * This is the first hallo world program in C Language * /
int main ()
{
clrscr ();
printf (“Hello World”);
getch ();
return 0;
}
[/code]
C Program output:
[code language=’C’] Hello World[/code]
Understand C Programming Structure in Hindi
Abi jo humne c program likha hello world ka usse smjhte hai step to step-
- #include<conio.h> aur #include<stdio.h> in dono statement ko header files bola jata hai, yah ek preprocessor directive hai jo compiler me phale se he hoti hai. basically in header files ka kaam contents karna hota hai. abi ke liye itna smjh lo ke in dono stement ka use hum kuch file ya code ko apne program me include karne ke liye karte hai.
- / * This is the first hallo world program in C Language * / iss statement ko hum comment bolte hai comment ko compiler kabhi bhi compile or read nahi karta kyunki inka use program me users ko program smjhne ke liye kiya jata hai.
- int main() C compiler c program ko int main () se read karna start karta hai. c program me hume jis bhi statement ko execute ya compile karna hota hai unhe hum { } curly bracket ke andar write karenge.
- clrscr(); yah ek function hota jiska kaam hota hai phchle program ke out put screen ko clear karna. yah function <conio.h> header file me include hota hai.
- Printf(); yah bhi ek function hota hai jiska kaam hota hai output screen par massage show karna. jaise humne program me kiya hai “hello world” yah function <stdio.h> header file me include hota hai.
- getch(); iss function ka use hum output screen ko hold karne ke liye kiya jata hai, program ki output screen show hone ke baad hume keyboard se key press karni hoti hai tab hum return source code screen par aate hai. yah conio.h header file me include hota hai.
- return 0; c program me yah ending function hota hai program me yah compiler ko 0 return karta hai means program successfully run hogaya.
See Also:
- Top 5 Apps to Learn Free Coding 10x Faster Beginner to Advanced – Complete Guide
- What’s New Features Will iPhone 16 Pro Max Have?
- Top Best Survival PC Games Play For Free – Available on Steam Free Download
- Google Analytics Free Training Courses with Certification Developed by Google
- 15 AI Tools You Won’t Believe Are Free – Best Free AI Tools