Friday, 27 April 2012

Program Of Exception Handling In C++

#include<iostream.h>
#include<conio.h>
main()
{
int a,b,c;
clrscr();
a=7;
b=2;
{
c=a/b;
cout<< c;
}
{
   cout<<"Divide By Zero Error";
}

getch();
}

No comments:

Post a Comment