Computer Science, asked by janak7705, 1 year ago

Explain run time error with example.

Answers

Answered by meetikamalhotra42
2

Runtime errors are errors that occur when the program is running. They maybe of different types which include :1.logical errors eg You make a program for adding two numbers but by mistake you give a - sign instead of + sign.

2.memory leaks eg Running infinite loops or not deallocating used memory can cause them.

3.crashes this is due to many reasons

a.Referencing missing files

b.Dividing things by zero

c.Giving the wrong input

Similar questions