CS 202 f2017 quiz 3. cs202xy login: _____________________________________________ 1. For each, give the value printed. 1a) char c = 97; printf("%c", c); 1b) char c = 97; printf("%i", c); 1c) char c = 127; printf("%i", c << 1); 1d) char c = 127; printf("%i", c & 15); 1e) int x = (1 < 2) && (2 < 1); printf("%i", ++x); 1f) int x = (1 < 2) | (2 < 1); printf("%i", x++); 1g) int x = 1; switch (x) { case 1: x++; case 2: x++; case 3: x++; default: x++; } printf("%i", x); 1h) for(int i=0; i < 5; i++) ; printf("%i", i); 1i) int x=0; while((x=1) > 2) x++; printf("%i", x); 1j) char c = 127; c++; printf("%i", c); 2) Give the min, max, and # bytes for each of the following data types 2a) unsigned char 2b) char 2c) int 2d) unsigned int 2e) short 2f) unsigned short 2g) long int 2h) unsigned long int 2i) float - max/min, precision (# digits) 2j) double 2k) long double 3) Give an extremely short phrase (at most 10 words) describing what each keyword does 3a) static, for local variable - global storage, local scope 3b) static, for global variable 3c) const 3d) while 3e) #define 3f) sizeof 3g) extern, for global variable 3h) enum 3i) typedef 3j) union 3k) struct 3l) for 3m) switch 3n) break 3o) continue 3p) default