Computer Science, asked by manpriya9193, 5 months ago

A c++ program to swap the first and the lasr elements of an integer array

Answers

Answered by malayalikutti
10

Explanation:

 \huge \pink \star \huge{answer} \pink \star

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 Malayalikutty
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