Printing/Reading formatted output/input
function prototype
- int printf(const char *format,...);
- i.e. parameter is a list of arguments containing a control_string and other arguments, and printf will return a int type value
- e.g. printf("Get set: %s %d %f %c%c\n","one",2,3.33,'G','O');
- int scanf(const char *format,...);
- i.e. scanf is analogous to printf, after the control string, the other arguments are address which is the place in memory where that variable is stored, and scanf will return a int type value
- e.g.. scanf("%d",&x);
- see p 482 Figure D.3 printf and scanf conversion