Let us C Solutions | C Programming | Why use Console Input / Output Functions in C Language

Опубликовано: 20 Октябрь 2024
на канале: Level Up Programming in 2024 with Techvideopedia
87
7

Answer the following:

To receive the string "We have got the guts, you get the glory!!" in an array char str[100]
which of the following functions would you use?
1. scanf("%s", str);
2. gets(str);
3. getche(str);
4. fgetchar(str);

Let us C Chapter 18 Exercise C (b)
Answer the following:
Which function would you use if a single key were to be received through the keyboard?
1. scanf()
2. gets()
3. getche()
4. getchar()

Let us C Chapter 18 Exercise C (c)
Answer the following:
If an integer is to be entered through the keyboard, which function would you use?
1. scanf()
2. gets()
3. getche()
4. getchar()

Let us C Chapter 18 Exercise C (d)
What is the difference between getchar(), fgetchar(), getch() and getche() ?

Let us C Chapter 18 Exercise C (e)
Which of the following can a format string of a printf() function contain:
1. Characters, format specifications and escape sequences
2. characters, integers and floats
3. Strings, integers and escape sequences
4. Inverted commas, percentage sign and backslash character


Let us C Chapter 18 Exercise C (f)
The purpose of the field-width specifier in a printf() function is to:
1. Control the margins of the program listing
2. Specify the maximum value of a number
3. Control the size of font used to print numbers
4. Specify how many columns would be used to print the number


To become a skilled programmer, Subscribe: / @techvideopedia

The video discusses the following:
0:00 Let us c chapter 18 Exercise C
0:11 Example of using gets(str) in C
0:54 Example of using getche() in C
1:44 Example of using unformatted console input output functions in C
2:17 Difference between getchar(), fgetchar(), getch() and getche()
3:35 Format string of a printf() function
4:12 Field width specifier in printf()


The video answers the following:
How does a format specifier work?
How do Input functions work?
How do output functions work?
How does input/output functions work?
What are the kinds of input/output functions?
What are the variants of input/output function?
What is console I/O Functions? What is console input output function?
What is file I/O functions?
Types of input output functions
Formatted and Unformatted console I/O function
Type of formatted I/O functions
Type of unformatted I/O functions
printf() and scanf()
gets() and puts()
getch() , fgetch() and putch() , fputch()

To get complete let us C solution all exercises in Hindi:
Watch Chapter 17 of Let Us C here: https://bit.ly/letuscch17
Watch Chapter 16 of Let Us C here: https://bit.ly/letuscch16
Watch Chapter 15 of Let Us C here: https://bit.ly/letuscch15
Watch Chapter 14 of Let Us C here: https://bit.ly/letuscch14
Watch Chapter 13 of Let Us C here: https://bit.ly/Letuscch13
Watch Chapter 12 of Let Us C here: https://bit.ly/letuscch12
Watch Chapter 11 of Let Us C here: https://bit.ly/letuscch11
Watch Chapter 10 of Let Us C here: https://bit.ly/letuscch10
Watch Chapter 9 of Let Us C here: https://bit.ly/letuscch09
Watch Chapter 8 of Let Us C here: https:/bit.ly/letuscch08
Watch Chapter 7 of Let Us C here:https://bit.ly/letuscch07
Watch Chapter 6 of Let Us C here:https://bit.ly/letuscch06
Watch Chapter 5 of Let Us C here:https://tinyurl.com/letuscch05
Watch Chapter 4 of Let Us C here:https://bit.ly/letuscch04
Watch Chapter 3 of Let Us C here:https://bit.ly/letuscch03
What Chapter 2 of Let Us C here:https://bit.ly/letuscch02
Watch Chapter 1 of Let Us C here: https:/tinyurl.com/letuscch01

You might confuse our channel name with the following:
tech video pedia, techvideo pedia, tech videopedia, technopedia, techopedia,techpedia
To know more: https://techvideopedia.com/

#programming #coding #learnc #codingforbeginners #programmingforbeginners #letuscsolution #inputfunctions #outputfunctions #printf #scanf #InputOutputFunctions #ProgrammingTutorial #LearnProgramming #CProgrammingForBeginners

https://techvideopedia.com/