I clearly understood the whole concept..Thanks a lot sir for your efforts!
@khalila.33476 жыл бұрын
This function is return type as this function is returning value of x*y. But you write void fact(int n) { //code here } i think it should be like this int fact(int n){ //code here }
@democracyprevails Жыл бұрын
👌
@sarathk9957 жыл бұрын
awesome explanation..thank u sir
@deeyunshiee Жыл бұрын
kudos to you sir!
@adveatprasadkarnik77372 жыл бұрын
thank you sir, very helpful video
@sureshrakes27807 жыл бұрын
Bahuth acha
@abhishekkumar-os5zk6 жыл бұрын
fact function return type is wrong . bro correct it .
@deepakborah83357 жыл бұрын
Recursion is encountered.
@shereenpv13537 жыл бұрын
sir ..thank you for your effort...would you please upload a video for how to remove recursion using stack?
@madhivarman5087 жыл бұрын
recursion function is automatically popped out from the stack when the iteration of the function is over.. In this video he had explained this concept .. when the if condition satisfied the compiler starts returning x*y and updates y value respectively... and when all x*y finished the value will stored at x . At line 3, compiler removes all recursions from the stack ... :)
@manuraj88895 жыл бұрын
Thanks a lot sir😍.
@roronoazoro-5184 жыл бұрын
8:47
@aryamukherjee24437 жыл бұрын
Sir please can you explain one simple thing? Sir, you said in scope and lifetime of variables the fact function lifetime has expired so its return value cant be accepted... so how r we accepting here? i am getting confused... Sir please clear the matter! please Sir
@rohitsancheti967 жыл бұрын
if you are returning reference than it would be a problem..but if you use call by value it wouldn't be a problem
@mayurnagdev55456 жыл бұрын
the data type of fact() must be int.
@rohitsingla768111 ай бұрын
college professors are worst , thanks sir
@shreyastorgalmath53576 жыл бұрын
u cant return two element
@misterkid6 жыл бұрын
it's returning one element (x*y) but it's void so it can't return
@harshmk10524 жыл бұрын
@@misterkid the return type is int . He had cleared that in the paid course .