Created
March 17, 2022 21:38
-
-
Save kallisti5/b33ca0ac17dd1cb852806b752616d68d to your computer and use it in GitHub Desktop.
A quick exception test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int | |
main(void) | |
{ | |
try { | |
printf("Throw the answer!\n"); | |
throw 42; | |
} catch (int e) { | |
printf("Catch! Err %d\n", e); | |
} | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment