1)
As you have not provided the string so I am considering it as s="abcdefghijklmonpqrstuvwxyz".
cout <<s.subsstr(1, 3) =bcd
cout <<s+s1. substr (4,12) =abcdefghijklmonpqrstuvwxyzefghijklm
cout <<s.erase (2,5) =abghijklmnopqrstuvwxyz
2)
a) Type casting refers to changing an variable of one data type into another. The compiler will automatically change one type of data into another if it makes sense. For instance, if you assign an integer value to a floating-point variable, the compiler will convert the int to a float
Comments
Thanks so much for the great work
Leave a comment