87.6k views
4 votes
Write a function call with arguments tensplace, onesplace, and userint. be sure to pass the first two arguments as pointers. sample output for the given program:

User HeyHeyJC
by
8.3k points

1 Answer

5 votes
functionname(&tensplace, &onesplace, userint); The assignment was to write a function call so I assumed the syntax of the function. The sample output of the program was not given, so I assumed this did not mater. I also assumed the functions name and that the language was C++. A function is called by it's name with the arguments as a comma separated list inside parentheses. A & is used to denote the address of in C++. &tensplace and &onesplace gives a pointer to the variables tensplace and ones place. userint is passed by value.
User Wholol
by
8.4k points