Docsity

Lab Exercises in C++: Array Manipulation and Pointer-based Swapping, Assignments of Programming Languages

Partial preview of the text

Download Lab Exercises in C++: Array Manipulation and Pointer-based Swapping and more Assignments Programming Languages in PDF only on Docsity!

Lab

Page. 1

Lab task 12.1: Declare an array of ten element of type int. access these element using by pointer and add them.

Output of Program.

Lab #

Page. 2

Lab Task 12.2: Code a c++ program that takes three integer from user and swap them in cyclic

order using pointer.