Quantify a leak summary

At normal program exit, a Memcheck leak summary for a C data importer contains the four categories below. There are no suppressed blocks or additional categories. Calculate the combined definitely and indirectly lost memory in bytes, to zero decimal places. Then calculate that combined amount as a percentage of all bytes remaining allocated in the table, to one decimal place.


Category

Bytes remaining allocated

Definitely lost

150

Indirectly lost

54

Possibly lost

30

Still reachable

126

Your answers

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

More GDB & Valgrind Questions: