-
January 15th, 2004, 12:39 PM
#1
Junior Member
Divide by zero problem
her's two piece of Code
1.
{
int a=7,b=0,c;
c=a/b;
}
this code give's a error at run time divide by zero
2.
int c;
c=7/0;
printf("%d",c);
this code gives a compile time warning divide by zero
but at run-time No Warning
also c containc 7
can someone explain me wht the hell is happing here
thanx in advance
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|