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 the advantages of using linked list for tree construction?
What is an expression?
What is const volatile variable in c?
What are the keywords in c?
Who is the main contributor in designing the c language after dennis ritchie?
which type of aspect you want from the student.
When should a far pointer be used?
What is p in text message?
How can this be legal c?
Write a program on swapping (100, 50)
Badboy is defined who has ALL the following properties: Does not have a girlfriend and is not married. He is not more than 23 years old. The middle name should be "Singh" The last name should have more than 4 characters. The character 'a' should appear in the last name at least two times. The name of one of his brothers should be "Ram" Write a method: boolean isBadBoy(boolean hasGirlFriend , boolean isMarried, int age , String middleName , String lastName , String[] brotherName); isHaveGirlFriend is true if the person has a girlfriend isMarried is true if the person is married age is the age of the person middleName is the middle name of the person lastName is the last name of the person brotherName is the array of the names of his brothers
How main function is called in c?
Why do we need arrays in c?
What is anagram in c?
What is the use of static variable in c?