String prefix Cousin String suffix Vinny ifsuffixlength 6


String prefix = \"Cousin\"; String suffix = \"Vinny\"; if(suffix.length() == 6) cout

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

 String prefix = \

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site