7.4 String functions with pointers PARTICIPATION ACTIVITY 7.4.1: Modifying and s
ID: 3593383 • Letter: 7
Question
7.4 String functions with pointers
PARTICIPATION ACTIVITY 7.4.1: Modifying and searching strings. 1) Declare a chart variable named charPtr Incorrect int myPtr, declares an integer pointer with variable name myPtr Check Show answer 2) Assuming char* firstR; is already declared, store in firstRa pointer to the first instance of an in the char* variable userlnput. Check Show answer 3) Assuming char* lastR; is already declared, store in lastR a pointer to the last instance of an 'r in the char* variable userinput Check Show answer ) Assuming char* firstQuit; is already declared, store in firstQuit a pointer to the first instance of "quit in the char* variable userlnput. Check Show answer Feedback?Explanation / Answer
1) String charPtr= char* c;
as char* variable is nothing but a String itself.
2)
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.