To gain a solid understanding of arrays and strings in C.
-
Write a program
sum.c
given an array of n integers where n > 1, return an array of same size as the input array where every index of the output array is the cumulative sum of elements in the array so far. You can have it so that the array is input by the user. -
Write a program
vowels.c
that takes a string as input, removes vowels, and outputs the new string. -
Implement an algorithm to determine if a string has all unique characters. Name this program
unique.c
.
- How can you concatenate strings in C?
- If a static array is not initialized, what will the size automatically be set to?
- How would you declare a multidimensional array of size 64? Explain your answer.
- In your own words, explain what each of the following functions does and returns:
- strcmp()
- fgets()
- strcat()
- strlen()
Please include your name and a description in a comment at the top of your code files. Please also include your name at the top of your assignment4.txt
file. Submit by Wednesday, July 27th at 10am.