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 :-

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

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

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
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.

Leave a Reply

Your email address will not be published. Required fields are marked *

Show Buttons
Hide Buttons