Write a program that takes a string from the user and you have to do
following tasks with the string:
1. Reverse
2. Find Length
3. Sort
You have to create a child of child’s as given below process tree for each task and
each child exec with the image of the program of a particular task. Print the string after
each operation.
P->C->C->C->C->C
int main()
{
string str;
cin >> str;
str.reserve();
str.length();
}
Comments
Leave a comment