Answered step by step
Verified Expert Solution
Question
1 Approved Answer
3- int colsum (int a[] [D], int d, int colnum); This function receives a square array(a), the row and column size (d), and certain column
3- int colsum (int a[] [D], int d, int colnum); This function receives a square array(a), the row and column size (d), and certain column number colnum, this function should return the sum of the column colnum. 2 6 1 4 ON 5 6 10 9 143 407 19 11 8 4 if the clonum= 0, The function returns 2+6+1+4= 13 In main: Define a 2D array of integers of size 4x4 and initialize it using an initializer list. Define an integer variable clonum, and insert its value from the keyboard. Call the colsum function then print the returned value to the screen. at countWords (const char * stri); This function receives array of characters (str1). The function returns the number of words int the string stri. Example: Suppose str1 = "see you soon", the function should return 3 In main: Define array of characters (str1), and give it initial value "see you soon" Call the countWords function then print the result to the screen
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started