Hello, OnlineGDB Q&A section lets you put your programming query to fellow community users. Asking a solution for whole assignment is strictly not allowed. You may ask for help where you are stuck. Try to add as much information as possible so that fellow users can know about your problem statement easily.

print reverse of a string using C command line arguments

0 votes
asked Oct 5, 2017 by anonymous

2 Answers

0 votes
answered Oct 5, 2017 by raj
0 votes
answered Oct 11, 2017 by Shaik Avaies
#include<stdio.h>
#include<string.h>
main()
{
char str[20];
int i=0;
printf("Enter string:");
gets(str);
while(str[i]!=' \0')
{
i++;
}
i--;

printf("\nReverse string:");

while(i>=0)
{
printf("%c",str[i]);
i--;
}
}
Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and and receive answers from other members of the community.
...