Advertisements
Advertisements
प्रश्न
Differentiate between formal parameter and actual parameter.
अंतर स्पष्ट करें
उत्तर
S. No. | Formal parameter | Actual parameter |
1. | They are variables defined in the function signature. | They are values given to the function at the time of function call. |
2. | They receive value from the actual parameter. |
They give values to a formal parameter. |
shaalaa.com
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
संबंधित प्रश्न
What are the two ways of invoking functions?
How are private members of a class different from public members?
Write a menu-driven program to display the pattern as per the user’s choice.
For an incorrect option, an appropriate error message should be displayed.
Method which is a part of a class rather than an instance of the class is termed as ______.
Invoking a method by passing the objects of a class is termed as ______.
Assertion (A): Static method can access static and instance variables.
Reason (R): Static variables can be accessed only by static method.