MATH-251 Study Guide - Midterm Guide: Data Segment, Brian Kernighan, Object File

102 views4 pages
School
Department
Course

Document Summary

The basic operations of a computer system form are known as what is called the instruction set of the computer. The entire process of compiling and linking a program is called building. Octal formats of numbers always start with a zero and %#o or %o is used in the printf format. An integer constant preceded by a zero and then an "x" is usually hexadecimal. (%x and %#x to show preceding 0x) %f (six decimal points), %e (scientific notation) can be used for double and float. The standard header file defines the values bool, true and false. (_bool is original). _bool is printed by using %i. long int factorial makes factorial a long integer variable. (generally appended by the letter l at the end of the integer. Long long int variables are printed by using %lli. Long doubles are printed by %le and %lf. Asking for an integer output: scanf(%i, &number); scanf(%i%i, &n1, &n1); for two integers.