In this article we will learn how to reverse the string without using library or string function in C language.
Answer:
#include<stdio.h>
#include<conio.h>
int main()
{
char a[11]="PROGRAMMING";
char b[12];
int i,j;
clrs__cr();
for(i=0;i<11;i++)
{
for(j=10;j>=0;j--)
{
b[i]=a[j];
i++;
}
}
b[i]=NULL;
printf("String=%s\n",b);
getch();
return 0;
}
____________________________________________________
______________________________________________________

