1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

passing arguments to functions using pointers

Discussion in 'C++' started by Dixiie, Apr 1, 2011.

  1. Dixiie

    Dixiie New Member

    Apr 1, 2011
    Likes Received:
    Trophy Points:
    This is an assignment that was given to me as follows;

    Develop a program that inputs a set of test scores and displays the following:
    • the set of scores
    • average score
    The function ‘calculate_total’ calculates the total score (so far) by using the score entered. Hint: The
    function ‘calculate_total’ calculates the total using a pointer. In other words, a pointer argument (which is
    a pointer to score) is passed to this function in order for the function to perform its task.

    I need help on how to use functions and pointers in this problem....
    Your assistance would be greatly appreciated...

Share This Page