What do you mean by overflow and underflow?



What do you mean by overflow and underflow?..

Answer / Komal Prasad

1. Overflow: It occurs when the value stored in a variable exceeds its maximum capacity, leading to undefined or incorrect results. 2. Underflow: It occurs when the value stored in a variable is less than its minimum capacity, leading to undefined or incorrect results.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Data Structures Interview Questions

What is time and space complexity of bubble sort?

1 Answers  


What is the type of the algorithm used in solving the 8 Queens problem?

1 Answers  


What is data structure and why we need them?

1 Answers  


Is list a data type?

1 Answers  


Explain recursive function & what is the data structures used to perform recursion?

1 Answers   TCS,


Does the minimal spanning tree of a graph give the shortest distance between any 2 specified nodes?

1 Answers  


Is queue fifo or lifo?

1 Answers  


Why arraylist is not efficient for manipulation?

1 Answers  


What is best time complexity?

1 Answers  


What is long data type?

1 Answers  


How do you replace an element in an arraylist?

1 Answers  


What is the quickest sorting algorithm?

1 Answers  


Categories