#include void runTest() { printf("Hello world\n"); throw("Test exception"); } int main() { try { runTest(); } catch ( const char *msg ) { printf("Caught exception: %s\n", msg); } printf("Application completed successfully!\n"); return 0; }