void increment(int a) { a+=2 } void assign(int a) { a=a+2 } In which of the parameter passing technique a call to increment(b) will have a different effect from a call to assign(b) 1) call by value 2) call by value result 3) call by reference 4) call by name
Your succinct explanation was highly effective and greatly appreciated. Thank you very much!
Thank you so much for such a crystal clear explanation sir..!
Very nice explanation..
Thank you sir
Awesome explanation great faculty
love u sir
love u too abhay
6:38 In call by reference method do we need to pass address in actual parameters and use pointers in formal parameters ?
Yes
we should do that
It's so helpful Thank You...
are the changes restricted to the scope of the init, or do they stay after returning to main?
well done sir
amazing explanation
Best on the whole youtube
thanq sir , great explanation with suitable examples . But you still confused us . Anyways thank you
Thank you :) It helps a lot
Good explanation. Way less convoluted than my professor's lecture.
In call by name how we can access the actual arguments since they are the local variables of main function??
great explanation :)
nice video
good explanation sir thank you.
Shukrya ustaad jee
Good teaching...
nice explanation !!!
thank you very much
Which file can be news instead of the header file?
void increment(int a)
{
a+=2
}
void assign(int a)
{
a=a+2
}
In which of the parameter passing technique a call to increment(b) will have a different effect
from a call to assign(b)
1) call by value
2) call by value result
3) call by reference
4) call by name
sir what is the difference between a+=2 and a=a+2 ?
same; a+=2 is shortcut of a=a+2. Look up "operator overloading"
You have a nice handwriting, but it was kinda difficult to understand what you were saying. - Maybe it would help if you made subtitles on english. :)
well done, thank you
goat
thank you sir.
thanks this will give me 25pts i hope
wp man nice explanation!
thank you sir!
Hi.....,
After the function call how can the array i.e a[10] contains zero.... U are just passing zeroth index of an array... Could u verify it again
here y=0 is responsible for inserting 0 in the array a[10]. watch the video again carefully. if you have still problem . feel free to ask me :)
I don't understand the reason behind not selecting any programming language to explain all these techniques
All these concepts can not be related to particular programming language.
Example: call by name is not implemented by C programming.
GATE CS LECTURES BY GATE BOOK u may deliver that particular program in its respective language, why bcoz clarity is more important.
What if you don't know the syntax of that programming language ?
@@sureshrakes2780 Syntax is not that important to understand parameter passing techniques .