Question: please do question 1 and 2 .. 3 @ 88% 11:22 loop.dcu.ie Private Q1. Write a function of the form void printSpacedString(char str[]) { /*
.. 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
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
