N
Neo
Hi Friends,
I am trying following code
int main(void)
{
try
{
int i,j,k;
i=10;
j=0;
k= i/j;
}
catch(...)
{
printf("Erro!~");
return 1;
}
return 0;
}
Here it's divide by Zero error.
Now using MSVC compiler. the code flow lands up in catch block.
but gcc comiler the code simply throws "floating point exception"
can terminates.
Any comments??
I am trying following code
int main(void)
{
try
{
int i,j,k;
i=10;
j=0;
k= i/j;
}
catch(...)
{
printf("Erro!~");
return 1;
}
return 0;
}
Here it's divide by Zero error.
Now using MSVC compiler. the code flow lands up in catch block.
but gcc comiler the code simply throws "floating point exception"
can terminates.
Any comments??