Topic 2, Data I/O Functions slide 3

15 flashcardspar Clement
Réviser ces flashcardsGratuit · répétition espacée · iPhone, Android, Mac et web

Toutes les cartes

1
What are the two types of I/O functions in C?
Formatted and Unformatted functions
2
Which function is used to write output data to a standard output device in C?
printf
3
What is the syntax of the printf function?
Printf("control/format string", variable1,variable2,...,variable n);
4
Which function is used to enter input data from a standard input device in C?
scanf
5
What does the control or format string in scanf contain?
Certain required formatting information
6
What symbol is used in scanf to indicate the type of the corresponding data item?
%
7
What operator is used in scanf to indicate the memory location of a variable?
& (address of) operator
8
How many types of unformatted I/O functions are there in C?
Three types
9
Which function is used to input single characters in C?
getchar()
10
Which function is used to display single characters in C?
putchar()
11
What functions offer alternatives to scanf and printf for string input and output?
gets and puts
12
What is a disadvantage of the gets() function?
It does not perform any bounds checking, leading to buffer overflows
13
What is a disadvantage of the puts() function?
It lacks formatting options and automatically appends a newline
14
How is a string entered using gets()?
char line[60]; gets(line);
15
How is a string displayed using puts()?
puts(line);
Réviser les 15 cartes gratuitement

Plus de flashcards : Informatique

NetSec Understanding Prelims44 cartesInformatique · AnglaisDiandreiA+ Core 1 Domain 1 Acronyms37 cartesInformatique · AnglaisatalnagiMutlimedia in Information Systems32 cartesInformatique · Anglais—Griffith—OS Virtualization25 cartesInformatique · Anglais—Griffith—COMPTIA Security+ Module 3: Threats, Attacks, and Vulnerabilities20 cartesInformatique · AnglaisJean-LucTopic 05 – Continued.. Object Oriented Programming (OOPs) in C++15 cartesInformatique · AnglaisClementbotnets and zombies10 cartesInformatique · AnglaismainestarPCEP exam prep (multiple choice)262 cartesInformatique · AnglaisspartacusComputer Architecture: Memory Addressing111 cartesInformatique · AnglaisSamEmerging Technologies and the Industrial Revolution77 cartesInformatique · AnglaisFevenNetworking: The netstat Command66 cartesInformatique · AnglaisJayLecture 2 Yu55 cartesInformatique · AnglaisDiandrei

Tous les decks : Informatique

Révise ces decks dans l’app

Gratuit sur iPhone, Android, Mac et le web. Ajoute n’importe quel deck à ton compte en un tap.

Télécharger dans l’App StoreDisponible sur Google Play
Réviser les 15 cartes gratuitement