This preview shows pages 1–2. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: char short int long long long unsigned float double long double * (4 bytes?) void * enum typedef Casts and conversions coercion in expressions assignment typecast Truncation int division assignment Autoincrement and autodecrement ++--order of operations dangers: a[i] = i++; b = c*i** + d*i++; % is underused. Think of it for &quot;clock&quot; arithmetic on cyclic things: tab stops, clocks, dates, making change Trinary op ? : Comma op , On strings: no language builtins, but common functions strlen, strcpy, strcat, strstr, strchr, etc Lab: f08: re-implement strcmp w09: re-implement strstr note: strncat and strncpy are not candidates because the Linux man page already has the code. vim: set sts=2 sw=2 ai et :...
View Full Document
- Spring '09