C function to determine a character frequency, programming homework help

C function to determine a character frequency, programming homework help

QUESTIONS:


1. Consider an array variable with elements of type int. Write a C function to sum the first n elements in the array (which you can assume will exist). The function should have the following header:

int sum(int a[], int n);


2. Consider a variable of type char *. Write a C function to determine the frequency of a given character in the string. The function should have the following header:

int frequency(char *s, char c);

"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