A c++ program to swap the first and the lasr elements of an integer array
Answers
Answered by
10
Explanation:
Algorithm to swap first and last digit of a number:
Algorithm to swap first and last digit of a number: int n = 12345; int n = 12345; 2. To find the last digit of a number, we use modulo operator %.
✨️☺️⚡️✔️
Answered by
13
Answer:
In accessing the last element of the former array, a normal index is used whereas for the latter array, the length of the array is used.
Explanation:
⚡️☺️✔️✔️
Similar questions
English,
2 months ago
English,
2 months ago
Geography,
2 months ago
Social Sciences,
5 months ago
Hindi,
5 months ago