learn c programming language in hindi
learn c programming easy way

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

C Program output:


Understand C Programming Structure in Hindi 

Abi jo humne c program likha hello world ka usse smjhte hai step to step-

  1. #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.   
  2. / * 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.  
  3. 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.
  4. 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.
  5. 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.
  6. 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.
  7. 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:

2 COMMENTS

LEAVE A REPLY

Please enter your comment!
Please enter your name here

18 − eleven =