H Lecture Notes - Lecture 1: Printf Format String, Include Directive, Scanf Format String

5 views4 pages

Document Summary

Input/output functions are included in the user program by using the header file scanf() function. It is used to read/input values of variables using the standard input device (keyboard) It has the following form scanf( format string ,&v1, &v2, &v3,, &vn); where v1, v2, . , vn are variables whose values are to be read from the keyboard. Format string is the control string which represents the format specification. The symbol & represents the memory address where the variable value is to be stored. It is used to print / display values of variables using the standard output device (monitor). It has the following form printf( format string , v1,v2,v3,,vn); where v1,v2,, vn are variable whose values are to be displayed in the monitor. They are control characters used to move the cursor and print character such as ?, \, and so on.

Get access

Grade+
$40 USD/m
Billed monthly
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
10 Verified Answers
Class+
$30 USD/m
Billed monthly
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
7 Verified Answers

Related Documents