/* C program to reverse element of array. */
Suppose we have an integer array containing data 12, 65, 54, 34, 71 at location 0, 1, 2, 3, 4 then we need to reverse the array such as 71, 34, 54, 65, 12 are at location 0, 1, 2, ,3 ,4 respestively.
To get required result we need to transfer element at first location to last location, element at second location to second last location and so on. Therefore the loop should run for n/2 times only.
Skills Learned :
Written with ♥ from Mangesh.
|1||C program to reverse element in array.|
|2||C program to find the smallest number in array.|
|3||C program to find the largest number in array.|
|4||C program for addition of 2D matrix.|
|5||C program to calculate sum of all elements in array.|