cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
recursion
recursion
Sep 24, 2012 at 3:10pm UTC
JAI SINGH
(100)
void test(int);
int main()
{
test(5);
while(!kbhit());
return 0;
}
void test(int x)
{
if(x>1)
{
test(x/2);
test(x/2);
}
printf("*");
}
here
^
is printed 7 times I just want explanation......?
Topic archived. No new replies allowed.