Question: Create 2 functions and 1 test case for each function with expected output listed in comments. With the skeleton main and the linked list structure

Create 2 functions and 1 test case for each function with expected output listed in comments. With the skeleton main and the linked list structure declaration.

function1() - Linked List - Given a reference to a linked list:

(1) print out the number of nodes in the list,

(2) print out the {odd, even, pos, neg} values from the list, and

(3) calculate, print out, and return the {sum,product} of the {odd, even, pos, neg} values from the list.

function2() - pointers - Given a pointer to the first character that is the start of a c-string (remember c-strings end with a '\0'):

(1) determine and print out the length of the c-string without using strlen (using strlen() will result in a 0 for this portion of the code),

(2) print out the {lower, upper} case characters from the c-string, and

(3) calculate, print out, and return the average number of words that contain the same letter as the {first,last,2nd} letter of YOUR {first, last} name.

#include

#include

struct SSL1 {

int value;

struct SSL1 *next;

};

function1(){

}

function2(){

}

int main() {

return 0;

}

*PLEASE DISPLAY THE OUTPUT OF THE RUNNING CODE

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!