String prefix Cousin String suffix Vinny ifsuffixlength 6
Solution
Error:- Swap function always take two parameter as argument and we need sizeof operator to findout the size.
Provided that the swap method called with one arguments swaps the value with the variable from which it is called and also the size method returns the size of the string.
The code will return following output:-
Vinny Cousin
Tiger Woods

