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

214 views5 pages

Document Summary

Number of exam pages (including cover sheet): 5. Be brief, but you must answer the question! Do not rephrase the question in your answer; use point-form when possible. 2. (a) 1 mark what is unusual about the basic type int in c/c++? (b) 2 marks give the values in each variable after the following code fragment has executed: int i = 3; . { int k = i, i = 4; . 3. (a) 2 marks variables p1 and p2 are pointers. Print identical output (all lower-case letters), if the output from the two programs in the same for a speci c input- le; otherwise print all differences in the output for each input le. The script has the following interface: regress program1 program1-options program2 program2-options input- le-list. % regress cat cat input identical output compares the output from commands cat on input le input and prints identical output . < a abc abc abc ab ac a.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers

Related Documents