0 like 0 dislike
1 view
asked in Computer Science by (383k points)
Differentiate between formal and actual parameters of a function.

1 Answer

0 like 0 dislike
answered by (383k 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:

8.6k questions

7.7k answers

24 comments

3.2k users

Categories

Free Hit Counters
...