good question

 

#include<stdio.h>
int main()
{
   char a[100];
   int i, l=0;
   printf("enter the string\n");
   gets(a);
   for(i=0; a[i]!='\0'; i++)
    {
        l++;
    }
    printf("now it s time to reverse the array\n");
    for(i=l-1; i>=0; i--)

    {
        printf("%c", a[i]);
    }
   
    return 0;
}

Comments

Popular posts from this blog

priority_queue

css in phone