If this number turns out to be very large and hard to read (it probably will be), then print it also in MB. To do this, use bit shift operations in C/C++.
Play around by compiling with -m64 and see whether the result changes.
Watch out for: overflows. As you declare your variables, be mindful of the range of an int.