Answer Posted / vignesh1988i
#include<stdio.h>
#include<conio.h>
void main()
{
char a[40],temp;
int count=0;
printf("enter the string :");
gets(a);
for(int i=0;a[i]!='\0';i++)
count++;
for(i=0;a[i]!='\0';i++)
{
if(count>i)
{
temp=a[i];
a[i]=a[count-1];
a[count-1]=temp;
count--;
}
else
break;
}
printf("the reversed ones is : ");
puts(a);
getch();
}
thank u
| Is This Answer Correct ? | 9 Yes | 21 No |
Post New Answer View All Answers
What are enums in c?
How can I implement a delay, or time a users response, with sub-second resolution?
What is sizeof return in c?
Explain the difference between null pointer and void pointer.
What is difference between static and global variable in c?
How is a structure member accessed?
What is void main () in c?
Explain what are the __date__ and __time__ preprocessor commands?
What is typeof in c?
What does malloc () calloc () realloc () free () do?
Is anything faster than c?
Why array is used in c?
How is actual parameter different from the formal parameter?
In the DOS enveronment, normal RAM that resides beyond the 1mb mark. a) expanded memory b) swapped memory c) Extended memory d) none
Is c programming hard?