Basic C Program | Learn Basic C Programming In Hindi

Basic C Program| Learn Basic C Programming In Hindi

Basic C ProgramC Programming Ko Learn Karne Ke liye Ham Starting me Simple C program Banane Wale hai. Aaiye C Language Ke Kuch Example Dekhte Hai.

Basic C Program

Basic C Program | Learn Basic C Programming In Hindi
c programming

Learn C programming ke kuch ham example dekh kar and uske kuch rules dekh kar ham aaj c basic program ko samanj te hai and little little program banate hai |

First Program Banane ke liye hame kuch topic ko pahle understand karna padega nhi to hme kuch samanj nhi aayega. Programming Language me basic understand karna bahut important hai |

#include<stdio.h>

#include<stdio.h> ko ham c programming me isliye use karte hai taki harama input and output mil ske . stdio ka matlab hota hai Standard Input Output |

stdio library me two function sabse jyada use hote hai |

  • printf // use print karne ke liye
  • scanf // use input lene ke liye

Simple C program

#include<conio.h>

#include<conio.h> ko ham isliye use karte hai taki ham display ko clear & hold kar sake. ye c programming me jyada hota hai. Conio ka matlab hota hai Console input & output |

Conio library me two function sabse jyada use hote hai |

  • clearscr(); // use screen clear karne ke liye
  • getch(); // use screen hold karne ke liye

C Programming

Ab Ham C programming ke kuch example dekhte hai wo bhi bilkul basic program |

First Program in C Language

Example :

#include<stdio.h>
#include<conio.h>

void main()        
{
clrscr();
printf("Hello World");
getch();
}

Output :

Hello World

Simple C program

Ab Ham Ek Aesa program banate hai ki usme user se input leke print karate hai uska name | Let See Example

Example

#include<stdio.h>
#include<conio.h>

void main()
{
char name[10];       // string variable  %s use in scanf
clrscr();
printf("Enter Your Name : ");         // use print ke liye
scanf("%s",name);                     // use input lene ke liye user se                              

printf("Your Name Is &s ",name);      // again print with name         
getch();
}

Output : –

Enter Your Name : Danish Ali

Your Name Is Danish Ali

C Language

aap dekh sakte hai hamne two program banaye hai . Firt program hamne keval hello world print karaya hai & second me hamne user se input leke uska name print karaya hai |


Dosto mujhe ummed hai ki aap Basic C programko acchi tarah se samanj gye honge agar aap ko ye post acchi lage to mere is website ko jarur follow kre or ha agar aap video bhi dekhna chahte hai to aap mere channel ko bhi subscribe kar sakte hai. channel ka link aapko home page par mil jayega |

Leave a Reply

Your e-mail address will not be published. Required fields are marked *