| 34 | } |
| 35 | |
| 36 | int main() { |
| 37 | int no; |
| 38 | struct Array arr; |
| 39 | cout << "Enter the size of the array " << endl; |
| 40 | cin >> arr.size; |
| 41 | arr.A = new int[arr.size]; |
| 42 | arr.length = 0; |
| 43 | cout << "Enter the length of array" << endl; |
| 44 | cin >> no; |
| 45 | cout << "Enter all the elements of array" << endl; |
| 46 | for (int i = 0; i < no; i++) |
| 47 | cin >> arr.A[i]; |
| 48 | arr.length = no; |
| 49 | Add(&arr, 10); |
| 50 | Insert(&arr,3,25); |
| 51 | Display(arr); |
| 52 | |
| 53 | return 0; |
| 54 | } |