What will be the equivalent code in C for the following C++ code?
int main()
{
//...
int count=0;
fun(++count); //function call
//...
}
void fun(int &count) //function definition
{
//...
fun(++count); //Recursive Function call
//...
}
Here count
variable is used to keep a track on number of calls of fun()