DIR Return Create A Forum - Home
---------------------------------------------------------
techsuns
HTML https://techsuns.createaforum.com
---------------------------------------------------------
*****************************************************
DIR Return to: Puzzles && Algorithms
*****************************************************
#Post#: 16--------------------------------------------------
output of c program
By: dinesh Date: August 13, 2012, 10:34 am
---------------------------------------------------------
Explain the functionality of following function:
int fun1(int x, int y)
{
if(x == 0)
return y;
else
return fun1(x - 1, x + y);
}
#Post#: 19--------------------------------------------------
Re: output of c program
By: adi Date: August 14, 2012, 9:44 am
---------------------------------------------------------
The function gives [ x.(x+1)/2 + y ]
#Post#: 26--------------------------------------------------
Re: output of c program
By: dinesh Date: August 16, 2012, 11:03 pm
---------------------------------------------------------
correct
*****************************************************