Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3
The memory address of any variable is the address of the location in memory where that particular variable's value is stored. Just like you have your home address, every variable has its address in the memory. Formal parameters are the variables that appear in the method(function) definition. They are the copies of the original variables passed to the called function by the calling function. Example- /*function definition*/ public int sum(int num1, int num2) { int sum=num1+num2; return sum; } /*function call*/ a=sum(n1,n2); Here num1 and num2 are formal parameters while n1 and n2 are actual parameters. An upvote will be highly appreciated😊
11th Jul 2016, 3:39 PM
Aastha Aneja
Aastha Aneja - avatar