Reading input & Output from the terminal In C | Input & Output Func In C

Reading input & Output :- Input & Output Lene ke liye ham me c programming me scanf & printf ka istemal karna hota hai. Input Lene ke liye scanf & output dene ke liye printf ka istemal hota hai.

Reading input & Output

Input Function

C Programming Me Input Function Ka Istemal isliye kiya jata hai. Taki User Se Ham Input Le Sake | Isse Input Function Ko Ham Example Se Samnj te Hai.

Input Func Example :-


void main()
char a;
printf("Enter Your Name : ");       // display line
scanf("%s",&a);                     // input lene ke liye 
printf("Your Name Is %s ");         // display line

Aap Is program me dekh Sakte Hai Jab Hamne scanf Ka Istemal kiya to hamne (%s) ka istemal kiya hai .

Structure in C Language | Basic structure in c example

Reading input & Output from the terminal In C

What Is ( % s ) : – s for string matlab jab hame ek se jyada character ka istemal karna hota hai tab ham string ( %s ) ka istemal karte hai . or agar hame ek character ka istemal karna hota hai tab ham (% c ) ka istemal karte hai .

output Function

output Func Example :-

Enter Your Name : Danish Ali
Your Name Is Danish Ali

Aap Dekh Sakte Hai Ye Program ka hame output mil gya hai. ye output hame printf function se display hua hai . c programming me printf ka istemal keval kisi bhi word ya other ko display karana hota hai |

input & Output

Dosto mujhe ummed hai ki aap Reading input & Output from the terminal In C ko 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 |

Danish Ali

I Am a Cyber Security Student & I have Skills C, C++ ,Python, HTML,CSS, Computer & Advance Hacking & Blogger & YouTuber.

View Comments

  • Great post. I was checking continuously this blog and I am impressed! Extremely useful info specifically the last part :) I care for such information much. I was looking for this certain information for a long time. Thank you and good luck.

Published by
Danish Ali

This Website Uses Cookies in order to offer you the most relevant information.Please accept cookies for optimal performance