First program C programming hindi tutorials

First program C programming hindi tutorials: Aaj ke ish tutorial me hum apna c programming me first program likhne ja rahe hai. or sare program ko hum line by line samjenge ki Kaise program work Karta hai.
First program C programming hindi tutorials
first c program
Note: Aaj ish tutorial me jo bhi kuch bataya jayega agar aapko kuch samaj me nahi aata hai to aage aane vale tutorial me yeh sab detial me discuss kiya jayega. aapko sirf yeh samajna hai ki kaise program ko likha jata hai.

Aaj hum ek chota sa c program likhege. jisme hum hello c programming ko output ke tor par print karvayenge. or program ko step by step samjenge.



First program C programming hindi tutorials

sabse pahle aapko compiler ko open kar lena hai. or usme program ki coding kar leni hai. aapko program ki coding niche di gayi hai.
#include <stdio.h>
#include <conio.h>
void main()
{
  printf("Hello c programming");
getch();
}
Output:
First program C programming hindi tutorials
first c program
Note: yeh ek c program hai. jisme ki output ke tor par Hello c programming print karvaya Gaya hai.


Understand program line by line

#include<stdio.h>

yeh, ek header file hai.
std = standard
i    =  input
o   = output
ish file me input or output se related functions, macros, data types define hai. jaisa ki hamne printf() function ko use Kiya hai. to printf() function stdio.h header files me define hai. isliye printf() function ko use Karne ke liye hum stdio.h header file ko include karenge. 
Note: aage ke tutorials me hum header files ke bare me or bhi padenge or samjenge ki header files Kaise work karti hai.

#include<conio.h>

yeh, bhi ek header file hai.
con = console
i     = input
o    = output
ish file me console se related functions, macros, data types define hai. jaisa ki hamne getch() function ko use Kiya hai. to getch() function conio.h header file me define hai. isliye getch() function ko include karene or use Karne ke liye hame conio.h header file ko include Karna padta hai. 


void main(){  }

Yeh main function hai. jab bhi compiler program ko compile Karna start karta hai. to vo main function ke open curly braces [ { ] se program ko compile karna start karta hai or close curly braces [ } ] pe compilation process ko khatam karta hai. or jo bhi code in curly braces 
{ program code } 
ke andar likha hota hai ushe execute karta hai. or machine language me badalta hai. 
iske alawa yaha par void ka matlab hai ke yeh function void value return karega. jiska matlabe hai ki koi bhi value return nahi karega.

Note: aage ke tutorials me hum function ke return type ke bare me complete samjenge. 



printf("Hello c programming");

printf() ek function hai. jo ki output window par message print Karne ke liye use me Liya jata hai. jo bhi message ( message ) in do braces ke andar likha Hua hota hai vo output screen par print ho jata hai. 
jaisa ki upar program me message ke tor par Hello c programming likha Hua hai. to output screen par Hello c programming print ho jayega. 

Note: Printf function ko detial me samajne ke liye ish link par click kare.

getch()

getch() ek function hai. jo ki output screen ko hold kar ke rakhta hai. jab Tak ki hum kisi key ko press kar nahi date hai. agar hum getch() function ko include nahi kare to output to screen par print, Hoga. lekin hume show nahi Hoga. kyuki output screen blink hoke band ho jayegi. 

Note: so abhi aapko samaj me aa gaya hoga ki ek c program ko kaise likha jata hai. or agar aapko yeh nahi pata ki program ko kaise compile or run karte hai to ish link ko follow kare.


First program c programming hindi tutorials 

Post a Comment

0 Comments