Math, asked by jhavikashkumar2802, 1 year ago

What happens behind the code int data=50/0; ?

Answers

Answered by rakshithraj
3
the output will v as run time error as 50/0 is not defined
Answered by anvimalik867
0

Concept:-

It might resemble a word or a number representation of the quantity's arithmetic value. It could resemble a word or a number that represents the numerical value of the quantity. It could have the appearance of a word or a number that denotes the quantity's numerical value.

Given:-

We have been given that the code int data=50/0; ?

Find:-

We need to find that what happens behind the code int data=50/0; ?

Solution:-

Scenario where Arithmetic Exception occurs

If we divide any number by zero, there occurs an ArithmeticException.

int a=50/0;//ArithmeticException

Hence, Arithmetic Exception occurs behind the code int data=50/0;.

#SPJ2

Similar questions