



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




This worksheet is entirely optional , and meant for extra practice. Some problems will be more challenging than others and are designed to have you apply your knowledge beyond the examples presented in lecture, discussion or projects. All exams will be done on paper, so it is in your best interest to practice these problems by hand and not rely on a compiler.
Pointers
ptr = &pic; pic = 31; cs++; cout << *ptr << endl; // (8) }
list2_size is the number of digits in the second number sum prints the sum of the numbers. Example: int list1 = { 8, 5, 3, 1 }; int list2 = { 5, 3, 2, 9 }; sum(list1, 4, list2, 4); // prints 13860, the sum of 8531 and 5329 int list3 = { 5, 3, 1 }; int list4 = { 5, 3, 2, 9 }; sum(list3, 3, list4, 4); // prints 5860, the sum of 531 and 5329