Lecture-9 Concepts and standard input/output operations

Concepts and standard input/output operations (अवधारणा और मानक इनपुट/आउटपुट ऑपरेशन):-
Data Input and Output (डेटा इनपुट और आउटपुट):-
> A program without any input or output has no meaning. 
(कोई भी प्रोग्राम जिसमें कोई इनपुट या आउटपुट नहीं होता है, उसका कोई मतलब नहीं होता है।)
Input → process → Output 
(इनपुट → प्रक्रिया → आउटपुट)
> Eg. marks sheet of students.
(उदाहरण: विद्यार्थियों का मार्क्स शीट।)
> Reading the data from input devices and displaying the result are the two main tasks of any program. 
(इनपुट उपकरणों से डेटा पढ़ना और परिणाम दिखाना, ये दो मुख्य कार्य होते हैं किसी भी प्रोग्राम के।)
> Input/output functions are the links between the user and the terminal. 
(इनपुट/आउटपुट फ़ंक्शन उपयोगकर्ता और टर्मिनल के बीच के लिंक्स होते हैं।)
> Input functions are used to read data from keyboard are called standard input functions. – scanf(), getchar(),getche(),getch() etc. 
[इनपुट फ़ंक्शन जो कीबोर्ड से डेटा पढ़ने के लिए होते हैं उन्हें मानक इनपुट फ़ंक्शन कहते हैं। – scanf(), getchar(), getche(), getch() आदि।]
> Output functions are used to display the result on the screen are called standard output functions. – printf(), putchar(), putch(), puts() etc. 
[आउटपुट फ़ंक्शन जो स्क्रीन पर परिणाम दिखाने के लिए होते हैं उन्हें मानक आउटपुट फ़ंक्शन कहते हैं। – printf(), putchar(), putch(), puts() आदि।]
> In C, the standard library stdio.h provides functions for input and output. 
(C में, मानक पुस्तकालय stdio.h इनपुट और आउटपुट के लिए फ़ंक्शन प्रदान करता है।)
> The instruction #include<stdio.h> tells the compiler to search for a file named stdio.h and places its contents at this point in the program. 
(निर्देश #include<stdio.h> कंपाइलर को बताता है कि stdio.h नामक फ़ाइल को ढूंढें और इसे कार्यक्रम के इस स्थान पर रखें।)
> The contents of the header file become part of the source code when it is compiled. 
(हेडर फ़ाइल की सामग्री कंपाइल होते समय स्रोत कोड का हिस्सा बन जाती है।)

Types of input/output functions (इनपुट/आउटपुट फ़ंक्शनों के प्रकार):- The input/output functions are classified into two types – 
(इनपुट/आउटपुट फ़ंक्शनों को दो प्रकारों में वर्गीकृत किया गया है –)
1. Formatted functions (स्वरूपित फ़ंक्शन)
2. Unformatted functions (अस्वरूपित फ़ंक्शन)
1. Formatted Functions (स्वरूपित फ़ंक्शन):-
- Formatted functions allow the input read input from the keyboard or the output displayed on screen to be formatted according to our requirements. 
(स्वरूपित फ़ंक्शन हमारी आवश्यकताओं के अनुसार कीबोर्ड से पढ़ी गई इनपुट या स्क्रीन पर प्रदर्शित आउटपुट को स्वरूपित करने की अनुमति देती हैं।)
Input function: scanf() 
[इनपुट फ़ंक्शन: scanf()]
Output function: printf() 
[आउटपुट फ़ंक्शन: printf()]
2. Unformatted Functions (अस्वरूपित फ़ंक्शन):-
- Doesn’t allow user to read or display data in desired format. 
(इन फ़ंक्शनों से उपयोगकर्ता को वांछित स्वरूप में डेटा पढ़ने या प्रदर्शित करने की अनुमति नहीं होती।)
- These library functions basically deals with a single character or a string of characters. 
(ये पुस्तकालय फ़ंक्शन बुनियादी रूप से एकल वर्ण या वर्णों की एक स्ट्रिंग से संबंधित होते हैं।)
- The functions getchar(), putchar(), gets(),puts(),getch(),getche(),putch() are considered as unformatted functions. 
[फ़ंक्शन getchar(), putchar(), gets(), puts(), getch(), getche(), putch() अस्वरूपित फ़ंक्शनों के रूप में मानी जाती हैं।]