0

What is meant by arguments and functions?

24th Feb 2017, 4:06 PM
SK.Hafeez
SK.Hafeez - avatar
2 Answers
+ 4
Arguments are parameters passed to a function that then processes them accordingly. Zeke Williams' post defines this.
24th Feb 2017, 7:31 PM
Mark Foxx
Mark Foxx - avatar
+ 3
Arguments are what you pass into functions. For example this function in c++, int AddTogether(int a, int b) { return (a + b); } takes two 'arguments' a and b and returns the sum of each of them. You can use it like this: int main() { int x = 5, y = 13; int z = AddTogether(x, y); cout << z << endl; } // outputs 18
24th Feb 2017, 4:45 PM
Zeke Williams
Zeke Williams - avatar