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...

Write a C program where input is: "My name is xyz". output
is: "xyz is name My".

Answer Posted / suneel

step1: First find length of the string
step2: Reverse the string and stored in another string
temp[]="zxy si eman ym";
step3:
Store each charecter in the temp[] to stack
when it is not a space
step4: If it is space then pop the all characters in the stack
and stored in o/p
step5: The process is done upto null

Is This Answer Correct ?    14 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a loop?

1073


What is 2 d array in c?

1033


How are strings stored in c?

1029


When should you not use a type cast?

1136


What is the use of typedef in c?

1040


How pointers are declared?

969


What is meant by type casting?

1064


please explain clearly about execution of c program in detail,in which stage are the printf sacnf getting into exeecutable code

2193


Explain how are 16- and 32-bit numbers stored?

1278


How old is c programming language?

1024


Do pointers store the address of value or the actual value of a variable?

1087


How can you tell whether two strings are the same?

1267


What does void main () mean?

1254


Why is c not oop?

985


What happens if header file is included twice?

1156