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

The instructions for two lab tasks in c++ programming. The first task involves declaring an array of ten integers, accessing its elements using pointers, and adding them. The second task requires writing a c++ program that takes three integers from the user and swaps them in cyclic order using pointers.

Typology: Assignments

2019/2020

Uploaded on 12/14/2020

razaroghani
razaroghani 🇵🇰

4.5

(4)

151 documents

1 / 2

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Lab #12
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.
pf2

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.