sample - Explain the following deFnitions(a Macros Problem...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
COP 3275 Programming using C, Fall 2011 Sample Questions for Midterm Exam given by Jonathan C.L. Liu This sample set provides you an opportunity to practice the midterm exam. There will be no key solutions for these practice questions. There is NO guarantee that the same questions will appear in the midterm exam. Problem 1 (5 points)
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Explain the following deFnitions: (a) Macros Problem 2 (5 points) What does the following statement print if i has a value of 7? What does it print if i has a value of -7? printf("%d\n", i >= 0 ? i : -i); Problem 3 (5 points) Describe the di±erences between expressions i + + and + + i ....
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online