CS246 Midterm: CS 246 0910-fall09-midterm-ans

110 views3 pages

Document Summary

These are not the only answers that are acceptable; these answers come from the notes or lectures. U/u for unsigned, and f/f for oat. (may show speci c examples of designated constant, e. g. , 3. (a) 2 marks it can mean either assign the pointer values or assign the values the pointers are pointing to. (b) 6 marks 1 for the stack, 1 for each variable on the stack. rtn. 4. (a) 2 marks operators lhs += rhs is implicitly rewritten as: temp = &(lhs); *temp = *temp + rhs; (b) 2 marks coercion is a cast without a conversion, forcing one type to another. After the #de ne statement the preprocessor substitutes the name with its value in the program. 5. (a) 2 marks formatted i/o transfers data with implicit conversion of internal values to/from human- readable form. # remove rst 4 parameters for test le in ; do.