Explain What is being executed in this code. State all changes
in values when traversing loops.
#include <stdio.h>
#define NUM_PRODUCTS 2
#define NUM_CATEGORIES 2
#define NUM_DIGITS 2
struct ProductInfo
{
int prodID;
int numberInStock;
double unitPrice;
};
int main(void)
{
struct ProductInfo productList[NUM_PRODUCTS] =
{
{78, 8, 19.95},
{95, 14, 22.98}
};
int categoryCount[NUM_CATEGORIES] = { 0 };
int i, j, sum, id, divisors[] = { 10, 1 };
for (i = 0; i < NUM_PRODUCTS; i++)
{
sum =...