3 @ 88% 11:22 loop.dcu.ie — Private Q1. Write a function of the form void printSpacedString(char str[]) { /* your code here */ } which takes as input any C-style string (ie, an array of char...

3 @ 88% 11:22 loop.dcu.ie — Private Q1. Write a function of the form void printSpacedString(char str[]) { /* your code here */ } which takes as input any C-style string (ie, an array of char terminated with a ‘10’ character) and prints each character in the string separated by a space. At the end of the line, your function should then print the number of characters in the string. Test your function by calling it from main() as printSpacedString(“Hello World!”); which should print out exactly the following Hello world! 12 Q2. Write a function of the form int largest(int a, int b, int c, in td) { /* your code */ } which returns one of the values a, b, cord, whichever is the largest.

May 19, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here