2.WAP to generate Floating point exception error or Divide by zero error.
Code:
#include
<stdio.h>
void
main()
{
int i,j,k;
printf("Enter a number : ");
scanf("%d \n",i,j=0); //For
Divide by zero error
k=i/j;
printf("k = %d /n",k);
}
Output:
Comments
Post a Comment