Presentation is loading. Please wait.

Presentation is loading. Please wait.

Data Structure CS 322. What is an array? Initializing arrays Accessing the values of an array Multidimensional arrays LAB#1 : Arrays.

Similar presentations


Presentation on theme: "Data Structure CS 322. What is an array? Initializing arrays Accessing the values of an array Multidimensional arrays LAB#1 : Arrays."— Presentation transcript:

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.


Download ppt "Data Structure CS 322. What is an array? Initializing arrays Accessing the values of an array Multidimensional arrays LAB#1 : Arrays."

Similar presentations


Ads by Google