exchange of control between functions in C language

Considering the following scenario: fn(1) calls fn(2) , then fn(2) calls fn(3), and now fn(3) should pass the control to fn(1) instead of fn(2) and control must not come back again. Regarding this I have tried with goto, but goto does not work between functions, its only a local jump. I wanted to check if there is any other method I could use to send the control to another function NOTE: NO global variable, pointer to functions will work in this case, as per my exploration
I would avoid jumps by all means. What is your use case? We might give better opportunities, if we know that.

以上就是exchange of control between functions in C language的详细内容,更多请关注web前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » CSS3 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准

联系我们

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏