COP 4338 Lecture 3: Standard Input and Output

63 views6 pages
School
Course
Professor

Document Summary

Standard input and output: int getchar (void) : reads from standard input stream (keyboard) using < for input redirection : program reads characters from inputfile. txt instead of standard input. provides the possibility of having a function with variable-length argument list: The type va_list: is a pointer that refers to each unnamed argument in turn. Macro va_start initializes a va_list type variable to point to the first unnamed argument. Va_arg function (not a macro) returns one argument and steps va_list type pointer to the next. Va_end function cleans up at the end. Interpret them according to the specification in format. Int sscanf (char *string, char *format, )

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents

Related Questions