Basic Programs
If Else based Programs
Loop Based Programs
Array Based Programs
String Programs
Function Programs
Pointers Programs
Structure & File Handling Programs
Data Structure Programs
Array based programs
C Program to print the array elements in reverse order
#include<stdio.h> #include<conio.h> void main() { int a[10], i=0; printf("enter ten array elements"); // take input in the array. while(i<10) { scanf("%d", &a[i]); i++; } i=9; // last index of the array because we have to print it in reverse order. while(i>=0) { printf("%d ", a[i]); i-- ; } }
Output of the above program is as following.
Video/ C Introduction
Watch video in full size