CS137 Study Guide - C Mathematical Functions, C Data Types, Scanf Format String
Document Summary
We will be covering: basic c programming concepts, variables, integers, chars, expression evaluation, conditionals, loops (do, do while, for, functions, parameters, recursion, arrays and pointers, structures, sorting, searching, time and space complexity. // main function returns and integer and takes no (void) parameters int main(void) { // take two integers as input, assign them to a and b. // so long as b is non-zero while(b) { // r is the remainder of a divided by b r = a % b; a = b; Table 1: types of integers and their sizes and ranges. Type size unsigned char char unsigned short short unsigned int int long. False is denoted by zero, true is denoted by non-zero (traditionally one). The logical operators are: not ( ! , or ( || , and ( && ) Demorgan"s identities (p && q) == !p || !q (p || q) == !p && !q.