4. Standard Input and Output

Getting standard input from file fin.txt, run: < fin.txt

Putting standard output into file fout.txt, run: > fout.txt

Both, run: < fin.txt > fout.txt

Piping standard output of p1 to standard input of p2, run: | p2

Escape characters, use inside 'single' or "double" quotes only:

  \'	single quote
  \" 	double quote
  \? 	question mark
  \\	backslash
  \a	audible bell
  \b	backspace
  \f	formfeed
  \n	newline
  \r	carriage return
  \t	horizontal tab
  \v	vertical tab
basic data types:       void, char, int,  double
printf output formats:        %c    %i    %e,%f,%g
scanf input formats:          %c    %i    %lf (means "long float")
Practice!