Create a free account on Computer Sir Ki Class and unlock access to valuable learning resources.
Exam Paper Downloads: After registering and logging in, you can download exam question papers in PDF format to practice and prepare for your exams.
Student Support: Get assistance with your doubts, queries, and questions related to your studies. Our support is here to help you understand topics and resolve your learning difficulties.
Register today and make your exam preparation easier and more effective!
Differentiate between formal parameter and actual parameter.
Answer:
Formal Parameters are parameters or arguments of a function or metod which are present in the header of a function definition. For e.g. in the following function
int add(int a, int b)ย {ย ย ย return a+b;ย }
a and b are formal parameters.
Actual parameters are used at the time of method or function invocation. For e.g. in the following statement
int x=add(2,3);
values 2 and 3 are actual parameters.
C. Sir| Created: 31-Mar-2018 | Updated: 16-Apr-2019|ICSE2016