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

Can true be a variable name in c?

1086


What is the 'named constructor idiom'?

1144


program to convert a integer to string in c language'

2504


Can variables be declared anywhere in c?

1147


What are structure types in C?

1151


Can a local variable be volatile in c?

1050


Explain what could possibly be the problem if a valid function name such as tolower() is being reported by the c compiler as undefined?

1062


Process by which one bit pattern in to another by bit wise operation is?

1221


how do you write a function that takes a variable number of arguments? What is the prototype of printf () function?

1978


List at least 10 sorting methods indicating their average case complexity, worst case complexity and best case complexity.

2793


What is the difference between procedural and declarative language?

1187


I need a sort of an approximate strcmp routine?

1075


Is c easier than java?

1118


How are Structure passing and returning implemented by the complier?

1227


c language supports bitwise operations, why a) 'c' language is system oriented b) 'c' language is problem oriented c) 'c' language is middle level language d) all the above

1099