[C] Write A Function To Determine Elements In A Header Question, assignment help

[C] Write A Function To Determine Elements In A Header Question, assignment help

QUESTIONS:

1. Consider an array of character strings. Each element in the array may be NULL, or it may be a string of length 0 or greater. Write a C function to count the total number of chars in the array including the terminating characters.

The function should pass the array and its length and should return a count of the number of chars in the array:

int countChars(char *array[], int len);

2. Write a C function to search an array for a specified value, changing all such elements to a new (given) value. The function should pass the array and its length as well as the old and new values.

It should return a count of the number of changes made and should have the following header:

int replace(char *array[],int len, char *old, char *new)

"You need a similar assignment done from scratch? Our qualified writers will help you with a guaranteed AI-free & plagiarism-free A+ quality paper, Confidentiality, Timely delivery & Livechat/phone Support.


Discount Code: CIPD30



Click ORDER NOW..

order custom paper