Try catch statements in C

前端 未结 13 1519
眼角桃花
眼角桃花 2020-11-27 10:06

I was thinking today about the try/catch blocks existent in another languages. Googled for a while this but with no result. From what I know, there is not such a thing as tr

13条回答
  •  心在旅途
    2020-11-27 10:44

    You use goto in C for similar error handling situations.
    That is the closest equivalent of exceptions you can get in C.

提交回复
热议问题