Tuesday, 25 August 2020

HOW TO REVERSE AN ARRAY IN C PROGRAM?

THE FOLLOWING PROGRAM EXPLAINS HOW TO REVERSE AN ARRAY IN C PROGRAM.

#include<stdio.h>
#include<conio.h>
void main()
{
int i;
int a[5]={10,20,30,40,50};
clrscr();
for(i=4;i>=0;i--)
{
printf(" %d\n",a[i]);
}
getch();
}

THE ABOVE PROGRAM EXPLAINED ABOUT HOW TO REVERSE AN ARRAY IN C PROGRAMMING LANGUAGE.

IN OUR NEXT POST WE ARE GOING TO LEARN HOW TO CONVERT METER TO CENTI METER.

No comments:

Post a Comment

C Programming

What is DBMS in brief?

A Database Management System (DBMS) is a software suite designed to efficiently manage, organize, store, manipulate, and retrieve data. It a...