- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patharraydemo.cpp
More file actions
Latest commit
26 lines (22 loc) · 457 Bytes
/
Copy patharraydemo.cpp
File metadata and controls
26 lines (22 loc) · 457 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#include<iostream>
usingnamespacestd;
intmain(){
// declaration
// int A[5];
//intialization with declaration
// int A[5] = {3,2,1,7,4}; 32174
// int A[5] = {2,4}; 24000
// int A[5] = {0}; 00000
// int A[] = {4,2,6,3,9,7}; 426397
//printing single index
//cout<<A[3];
//cout<<3[A];
//cout<<*(A+3);
//printing all indexes using for loop
//int i ;
//for(i=0;i<5;i++){
//
// cout<<A[i]<<endl;
//}
return0 ;
}