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

Explain can you assign a different address to an array tag?

1039


Multiply an Integer Number by 2 Without Using Multiplication Operator

759


What is the use of getchar functions?

1176


Design a program which assigns values to the array temperature. The program should then display the array with appropriate column and row headings.

2317


What is malloc() function?

1152


For what purpose null pointer used?

1066


The program will first compute the tax you owe based on your income. User is prompted to enter income. Program will compute the total amount of tax owed based on the following: Income Tax 0 - $45,000 = 0.15 x income $45,001 - $90,000 = 6750 + 0.20 x (income – 45000) $90,001 - $140,000 = 15750 + 0.26 x (income – 90000) $140,001 - $200,000 = 28750 + 0.29 x (income – 140000) Greater than $200,000 = 46150 + 0.33 x (income – 200000) Dollar amounts should be in dollars and cents (float point numbers with two decimals shown). Tax is displayed on the screen.

1629


What is bubble sort technique in c?

973


What is the difference between strcpy() and memcpy() function in c programming?

1081


Write a program to produce the following output: 1 2 3 4 5 6 7 8 9 10

15805


How can I copy just a portion of a string?

1307


Is array name a pointer?

1025


What is typeof in c?

1005


number of times a digit is present in a number

2034


Write the program that calculates and prints the average of several integers. Assume that the last value read is sentinel 9999.

3683