Although this code here taught me some basics about recursion but something here isnt clear to me.
void doll(int size)
doll(10) calls from the main() and "if size=0",then it exits. now if size!=0 , doll(9) is provoked and the transfer is directed again to doll(size).am i right?? and according to me , the cout<<size-1 should print 9,8,7,6,5,4,3,2,1 but i get 1,2,3,4,5,6,7,8,10. And also where is the transfer control directed after doll(size-1) is executed??pls help me..shouldnt it be transferred to " doll(size)" again??? if i am doing wrong in anything ..pls let me know