[Solved] CSE240 Homework4-writing functions using only pointer operations

$25

File Name: CSE240_Homework4-writing_functions_using_only_pointer_operations.zip
File Size: 602.88 KB

SKU: [Solved] CSE240 Homework4-writing functions using only pointer operations Category: Tag:
5/5 - (1 vote)

Reading: Textbook Chapter 2, Sections 2.1, 2.2, 2.3, and 2.4, and lecture slides covered.

Exercising: Complete the multiple choice questions in Textbook Section 2.12. The answers of the questions are available in course Web page.

You are expected to do the majority of the assignment outside the class meetings. Should you need assistance, or have questions about the assignment, please contact the instructor or the TA during their office hours.

You are encouraged to ask and answer questions on the course discussion board. However, in do not share your answers or code in the course discussion board. Do not cooperate with your peers in doing the individual assignments.

Programming Assignment

  1. You are given a C file hw04q1.c which contains a partially completed program. Follow the instructions contained in comments and complete the required functions. You will be writing most functions (initializeStrings, printStrings, toUppercase, toLowercase, changeAllToUpperOrLower, wordMatch, concatStr) using only pointer operations instead of using array operations. In this homework, the arrays in all functions need to be accessed with pointer, not as array. It means you cannot use an array element value through indexing like s[0][0] or s[i][j]. However, you can use the addresses of some array elements, such as &s[0][0] and &s[i][0]. Then, you use the pointer to access the array element value. You will be using a character pointer. You may use only the strlen( ) function from string.h library. You can find out more about these functions by reading through the instructions in the hw04q1.c file. Example output is given below.

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[Solved] CSE240 Homework4-writing functions using only pointer operations
$25