hi I wantto solve this question in C++ language with details,
please
Question :
1- delete adamant at index 2
2- delete element having, for example, value 3
I need code c++ for 2 Questions with output, please
# function to delete element from the array A at position 2 int A[5] = { 1, 3, 10, 2, 4-3 A - 1 3 to 2 4 o 1 2 3 4 After A 1 3 24 1 2 3 Size int pos; cin >> pos; for (int i = pos;i<n<i++) A = A[i+1]; int main() int n, pos, ALI;
hi I wantto solve this question in C++ language with details, please Question : 1- delete adamant at index 2 2- delete e
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am