0 like 0 dislike
2 views
asked in Computer Science by (474k points)
Differentiate between formal and actual parameters of a function.

1 Answer

0 like 0 dislike
answered by (474k points)
Formal parameters are the parameters as they are known in the function definition. Actual parameters (also known as arguments) are what are passed by the caller. For example, in the following code, a and b are the formal parameters, and x and y are the actual parameters:

int max(int a, int b) {
Welcome to Free Homework Help, where you can ask questions and receive answers from other members of the community. Anybody can ask a question. Anybody can answer. The best answers are voted up and rise to the top. Join them; it only takes a minute:

10.2k questions

9.2k answers

40 comments

3.2k users

Categories

Free Hit Counters
...