passing arguments to functions using pointers

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

  1. Dixiie

    Dixiie New Member

    Joined:
    Apr 1, 2011
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    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

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice