how's result 7?

How's the result 7 in the following code?
1
2
void foo(int i){
if(i>1){foo(i/2);foo(i/2);}cout<<"#"<<endl;}
What do you mean? 7 what?
Topic archived. No new replies allowed.