Answered step by step
Verified Expert Solution
Question
1 Approved Answer
6.4 7.1 vold 7.2 insert(int.string) string otect at a particular penitionspecified Inserts a string (specified as the SBS 2021 INP1501 as the first parameter)
6.4 7.1 vold 7.2 insert(int.string) string otect at a particular penitionspecified Inserts a string (specified as the SBS 2021 INP1501 as the first parameter) Erases a substring from a string object. The substring that is to be erased is determined by the two parameters from the position specified by the first parameter, as many characters as specified by the second parameter void erase (1nt, int) getline tistream, string & char) QUESTION 7 Erases a substring from a string object. The substring that is to be erased is determined by the two parameters from the position specified by the first parameter, as many characters as specified by the second parameter Assuming the following declarations, write a nested for loop to add 5 to every element of the array that is completely divisible by 5. Write only the for loop. (4) Replaces specified characters of a string object with another string. The characters to be replaced are determined by the first two parameters from the position specified by the first parameter, as many characters as specified by the second parameter. The string to be inserted in their place is specified by the third parameter. const int row size 41 const int col size 31 int arrirow_size] [col_size] = (7.17,8,52,4,15,25, 6, 14,30,2,10): 5; && ! (p ||q) ) ) Extracts characters from an input stream up to the first occurrence of a delimiting character and copies them to a string. (p ++X; What is value of x after the following code fragment has been executed? bool p true, q= false; int x if What is the output of the following program? #include using namespace std; void multiplyl (int & p, int & q) 11 MARKS (2) 2 [TURN OVE
Step by Step Solution
There are 3 Steps involved in it
Step: 1
It appears that youve provided several parts of programming exercises and questions Lets address the...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started