Question: Given the definitions below, write the C code that will sum up size number of values in list variable list that are evenly divisible by
Given the definitions below, write the C code that will sum up size number of values in list variable list that are evenly divisible by 2 and then print out this value once (i.e. print the contents of sum once after the summation). Do not writera complete program or any functions (including main); just write the declarations and code to perform the summation described. You may assume the value stored in size is valid. struct listType { int data[1000); int size; }; typedef struct listType *mylist; mylist list; int sum = 0; Enter your answer here
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
