[SOLVED] CSE240-Homework 4 Pointer Operations

20.99 $

Programming resource
Digital learning resource
Category:
✓ Practical programming resource
✓ Suitable for guided study and reference
✓ Tutor guidance available when needed

Description

5/5 - (4 votes)

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.

Resource details

Understand the Task Before You Use the Resource

Review the requirements, identify the programming concepts involved, study the implementation and test your understanding with your own examples and modifications.