Actual and Formal Parameters :-
A. Actual Parameters (Arguments)-
Hindi: Function को call करते समय जो values दी जाती हैं, उन्हें सामान्यतः Arguments या Actual Parameters कहा जाता है।
English: The values supplied when calling a function are commonly called Arguments or Actual Parameters.
B. Formal Parameters -
Hindi: Function definition में जिन variables का उपयोग values प्राप्त करने के लिए किया जाता है, उन्हें Formal Parameters कहा जाता है।
English: The variables declared in a function definition to receive values are called Formal Parameters.
Example:
Output:
30
Explanation:
a और b → Formal Parameters
10 और 20 → Actual Arguments