• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #include <stdio.h>
2 
foo(int d)3 void foo (int d) throw (int)
4 {
5   throw (d);
6 }
7 
main()8 int main()
9 {
10   try {
11    foo (10);
12    printf ("Hmm...\n");
13   } catch (int ex)
14   {
15     printf ("catch %d==10\n", ex);
16   }
17   printf ("Done.\n");
18   return 0;
19 }
20 
21