Multidimensional Arrays
BY CHAITALI PATIL
Assistant Professor,Dept. of Computer Engg.
[Link] Institute of Engineering Education
and Research, Nashik
Video link
2
Array Data Structure (1D 2D & 3D Array)
[Link]
Chaitali Patil
?
3
Why we need array?
What is the syntax to declare array in C/C++ to store
100 integer numbers?
Chaitali Patil
?
4
Why we need array?
What is the syntax to declare array in C/C++ to store
100 integer numbers?
int array_name[100]
e.g. int marks[100]
First 5 questions from supercampus
Chaitali Patil
5
Write a code in C or C++ to read the marks of 5
subjects of a student , and find the average and total
of the marks and print it.
[Link]
Chaitali Patil
6
#include <iostream>
using namespace std;
int main(){ cout<<"Hello World";
int i,total,avg,marks[5];
cout<<"Enter the marks of 5 students"<<endl;
for(i=0;i<5;i++)
cin>>marks[i];
cout<<"marks are :: "<<endl;
for (i=0;i<5;i++)
cout<<marks[i]<<endl;
return 0;
}
Chaitali Patil
Thank You
Chaitali Patil