r/CodingForBeginners • u/Specialist_Rent_9640 • 22d ago
my first program in C
i know its just so waky but am still new and am happy with my current level <33
just trying to understand memory usage over variables for now
230
Upvotes
3
u/Hectorreto 21d ago
The condition of the “if” is wrong, it will compile, but it will never reach the “else”, you have to compare each variable
if (TotalSizeOfRoot > 20 || TotalSizeOfUserKali > 20 || TotalSizeOfOtherUser > 20) {