input output function in C

Input And output function in c | How to use input output function in C

Input And output function – C Programming Language me user se input in c function me lene ke liye hame sabse input function in c Language ka use karna padta hai & “output function in C ” ka use program ko display karne ke liye karna padta hai.

Input And output function

input output function in C
input output function in C

Input Function

C Programming me input function user se input lene ke liye use hota hai | input func ko ham ek example se understand karte hai input function sabse c language me sabse jyada use hota hai |

input in c

Input lene ke liye hame c language me scanf ka use karna padta hai |

Structure in C Language | Basic structure in c example

Let See Example :-

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

void main()
{
char name;
int class;
clrscr();

printf("Enter The Name :\n");
scanf("%s",&name);                  #use for input
printf("Your Name Is %s");

printf("Enter The Class :\n");
scanf("%d",&class);                 #use for input
printf("Your Class Is %d");

getch();
}

Display Output :-

Enter The Name :
Danish
Enter The Class :
10

Your Name Is Danish
Your Class is 10

Aap Dekh Sakte Hai ki hamne input function ka use kiya or input function ko use karne ke liye scanf ka use hua hai | Agar hame koi use se kuch pta karna hoto wha pr bhi ham input func ka use karte hai. Input func sabse important fucntion hai c programming langauge me |

Output Function

Output Func C Programming lanuage me output show karne ke liye use hota hai| Matlab agar hame kuch bhi program ko display karana hoto output fucntion ka use karna hota hai. Isse ham ek example ke sath understand karte hai |

Example :-

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

void main()
{
char name;
clrscr();
printf("Enter Name :\n");
scanf("%s",&name);

printf("Hello %s");

getch();
}

Output :-

Enter Name :
Danish Ali

Hello Danish Ali

Aap Dekh Sakte Hai Output Function ka hamne kese use kiya hai issi tarah ham kuch long program bhi bana sakte hai. lekin hamne function ko understand karne ke liye ek chota sa program create kiya hai |

Input Output Function

Dosto mujhe ummed hai ki aap input & output func in C Language 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 |

mmi

Leave a Reply

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