It's a program that makes a function with a pointer as a parameter and gives the sum and the difference of the elements.
I tried to run the
get_sum_diff function in the
main function, but the
&s were red lines
They need an identifier, where is it wrong?
The problem did not occur in scanf_s, but the code below is the problem.
When using (calling) a function, it must be used without void as shown below. Note return values such as void only when declaring or defining a function; not when calling a function.
© 2022 pinfo. All rights reserved.