Visual Programming - CS410 Fall 2009 Assignment 01
Visual Programming - CS410 Fall 2009 Assignment 01
net
For each expression in Column-1, find the appropriate expression from Column-2
and write the answer in Column-3.
Write a C++ program, which declares an array of ten (10) integers. This array is then
passed to a function with the name “EvenTotal(…)”. The function “EvenTotal(…)” has
following declaration: SR
int EvenTotal (int * ptrArray, int Size);
This function is called from main function. It takes the address of first array element and
size of array as arguments, it then uses a loop structure to calculate the sum of all the
even integers in the array, the sum is then returned to main function, which then prints
this number on console. E.g.
U
For the array:
NOTE:
Don’t send “.CPP” file, instead submit solution of both questions in a single “.DOC”
file.