**Write a C++ program that will make use of the following structure and The typedef Statement:

typedef int ArrayType[MaxSize];

The structure is the OneDArray structure, which contains the following data items:
a- Name of array.
b- Size of array.

Use dynamic memory allocation (dynamic one-dimensional array) for storing positive numbers between 1 and 99 entered by the user. Then print the product and sum of array elements.
Your program must define and use the following functions:-

void PrintArray(OneDArray structure);
void PrintProd_Sum(OneDArray structure);**

Recommended Answers

All 2 Replies

What ever could be horrible about a problem? It certainly won't bite you know.

Learn by doing.
Learn by mistakes.
Learn by trying to understand.

Hard, I know, but that's life!

commented: Life can be hard indeed +14
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.