EECS 2031 Study Guide - Final Guide: Null Pointer, Tcsh, Ower

812 views9 pages

Document Summary

Eecs 2031 - final exam review: c overview. C program is compiled directly to binary machine code. %d - next argument is an integer - print as decimal. %f - next argument is a oating point number. %s - next argument is a string - just print it. A c program consists of functions, variables and constants. A function contains variable declarations and statements that operate upon variables and constants. Quali ers can be applied to basic types: signed/unsigned short (lower precision/fewer bits) long (higher precision/more bits) Execution of a c program starts at main() Executable program: binary code (consists of 0s and 1s). If a quali er is applied then int can be omitted (ie. unsigned long int == unsigned long ) Need to be either converted into an executable program by a compiler or may be executed with the aid of an interpreter. Long can be applied to oating points (double) (ie. 2e12)