Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Reverse a string word by word??

Answer Posted / vamsi

#include<stdio.h>
#include<conio.h>
void main()
{
char a[40],temp;
int count=0;
printf("enter the string :");
gets(a);
for(int i=40;a[i]!=a[1];i--)
printf (a[i]);
printf (a[1]);
}

Is This Answer Correct ?    1 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Where are the auto variables stored?

1103


find out largest elemant of diagonalmatrix

2186


What does char * * argv mean in c?

1015


What is meant by preprocessor in c?

964


How can a string be converted to a number?

985


What is null pointer in c?

960


Is c easy to learn?

948


What is #define?

1053


Explain how can you avoid including a header more than once?

1055


What is the function of volatile in c language?

1084


What is putchar() function?

1093


What is the main difference between calloc () and malloc ()?

1112


In a switch statement, explain what will happen if a break statement is omitted?

1010


How do we make a global variable accessible across files? Explain the extern keyword?

1842


Can main () be called recursively?

1074