worksheet4

worksheet4 - Worksheet 4 Chapter 7 Transfer your answers to...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Worksheet 4 Chapter 7 Transfer your answers to all questions to Chi-Tester. ONCE YOU START YOUR CHI- TESTER SESSION, YOU CANNOT CLOSE IT AND RESTART - TRANSFER ALL OF YOUR ANSWERS TO CHI-TESTER AT ONE TIME. The first 27 questions are from the textbook; question numbers from the text are given in square brackets at the beginning of the question on Chi-Tester. Please take a few moments to read the feedback. Worksheet 4 consists of the questions 1 - 23, 25, 28, 29, and 30 from the text (pp. 311-313), plus the following. (Answers for the textbook questions are found in Appendix G.) 28. Write a statement that finds the string "cat" in the c-string s1. a. char* s2 = s1.strstr("cat"); b. char* s2 = strstr(s1, "cat"); 29. Write a statement that finds the first 'c' (reading from the left) in the c-string s1. a. char* s2 = strchr(s1, 'c'); b. char* s2 = s1.strchr('c'); 30. Write a statement that copies c-string s2 to c-string s1. a.
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 2

worksheet4 - Worksheet 4 Chapter 7 Transfer your answers to...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online