今天看到一个很经典的递归,存下做个记录

int function(int start,int end)
{    
    
return (printf("%d ",start)) && (start<end && (function(start+1,end) || (!printf("%d ",start))));
}
原文地址:https://www.cnblogs.com/tqlin/p/1623953.html