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 function that accepts a sentence as a parameter, and
returns the same with each of its words reversed. The
returned sentence should have 1 blank space between each
pair of words.
Demonstrate the usage of this function from a main program.
Example:
Parameter: “jack and jill went up a hill” Return Value:
“kcaj dna llij tnew pu a llih”

Answer Posted / gunapala

start=0;
for(i=0;str[i]!='\n';i++)
{
if(str[i]!=' ')
{
for(j=i;j>=start;j--)
{
b[k++]=str[j];
}
start=start+1;
}
printf("/s",b);
}
}
}

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a program to print all permutations of a given string.

1184


#include { printf("Hello"); } how compile time affects when we add additional header file .

1876


Difference between macros and inline functions? Can a function be forced as inline?

1249


Tell me when is a void pointer used?

1157


What is the difference between test design and test case design?

2077


How to delete a node from linked list w/o using collectons?

2767


Explain the concept and use of type void.

1100


Explain how does free() know explain how much memory to release?

1056


difference between Low, Middle, High Level languages in c ?

2070


What is a pragma?

1112


What is header file definition?

1070


What are all different types of pointers in c?

1002


Explain what is a program flowchart and explain how does it help in writing a program?

1086


How do you construct an increment statement or decrement statement in C?

1213


hw can we delete an internal node of binary search tree the internal node has child node..plz write progarm

2008