Download presentation
Presentation is loading. Please wait.
Published byLucas Holland Modified over 9 years ago
1
Data Structure CS 322
2
What is an array? Initializing arrays Accessing the values of an array Multidimensional arrays LAB#1 : Arrays
3
LAB#1 Exercise#1: Write a C++ program that defines array Billy with the elements (16, 2, 77, 40, and 12071) of type integer, then print the sum of all elements.
4
LAB#1 Exercise#2: Write a C++ program that defines array jimmy for representing the elements as shown in the graph below.
5
LAB#1 Exercise#3: Write a C++ program to define array b of type INT with 2 rows and 4 columns. Then print the array row by row. The program should set column 4 to zero and print the new array.
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.