Exercises Week 2

advertisement
Exercises
Week 2
For next time, try to write and test these example functions in C:
void print_biggest(int n, double a[])
The function, taking two arguments, n and array a should print the largest
number in a to the terminal.
int letter_count(char letter, char string[])
The function should return the number of occurences of letter in the text
string[]. Test it with an example sentence.
Mike Peardon — mjp@maths.tcd.ie (TCD)
5613
Michaelmas Term 2015
1/1
Download