Use LEFT and RIGHT arrow keys to navigate between flashcards;
Use UP and DOWN arrow keys to flip the card;
H to show hint;
A reads text to speech;
23 Cards in this Set
- Front
- Back
T/F: Input and output facilities are part of the C language itself |
F |
|
Consists of a sequence of lines |
Text stream |
|
T/F: The simplest input mechanism is to read one character at a time from standard input with getchar |
T |
|
Returns the next input character each time it is called or EOF when it reaches the end of the file |
getchar |
|
T/F: A file may be substituted for the keyboard by using the < convention for input redirection |
T |
|
T/F: With input redirection, "<infile" is included in the command line arguments in argv |
F |
|
Puts a character on standard output and returns the character written or EOF |
putchar |
|
T/F: Output can usually be directed to a file with >filename |
T |
|
Each source file that refers to an input/output library function must contain the line ___ |
#include <stdio.h> |
|
Translated internal values to characters |
printf |
|
Does the same conversions as printf does, but stores the output in a string |
sprintf |
|
Reads characters from the standard input, interprets them according to the specification in format, and stores the results through the remaining arguments |
scanf |
|
T/F: An array name is a pointer |
T |
|
T/F: The arguments to scanf are not pointers |
F, must be pointers |
|
Used for printing files on the screen |
cat |
|
Points to a structure that contains information about the file |
File pointer |
|
Indicates how one intends to use a file |
Mode |
|
T/F: Opening a file for writing preserves the contents of a file |
F |
|
Returns the next character from a file |
getc |
|
Writes a character to a file |
putc |
|
Breaks the connection between the file pointer and the external file |
fclose |
|
Terminates program execution when called |
exit |
|
A return value of __ signals that all is well; non-___ values usually signal abnormal situations |
0; zero |