Recursion Question having issue while using pre decrement operator in c

前端 未结 0 1864
说谎
说谎 2020-12-19 12:42

**This function is used to calculate sum of first n natural nos .When I replace --limit with (limit -1) , I am getting correct answer For Eg - on passing 5 I get sum as 10

相关标签:
回答
  • 消灭零回复
提交回复
热议问题