Thread: error catching in c

  1. #1
    Unregistered
    Guest

    Question error catching in c

    i have got a question folks:
    can you catch errors in c?

    like java, is there any exception handlers?

  2. #2
    Im a Capricorn vsriharsha's Avatar
    Join Date
    Feb 2002
    Posts
    192

    Thumbs up

    Hmmm.
    I guess Yes. Every function (which u declare or is built-in) has a return value (atleast a void). Now, its your duty to explicitly catch those return values and trap the errors all within ur code. Unlike java, C does not have built-in Error Handlers, I guess. But do let me know if there are any and how to use them.

    Regards,

  3. #3
    Unregistered
    Guest

    error catching

    thanks very much

Popular pages Recent additions subscribe to a feed