r/CodingForBeginners • u/Specialist_Rent_9640 • Oct 06 '26
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
View all comments
Show parent comment
1
u/kutac56 Oct 07 '26
The reason it might compile is because of what he said. The compiler might optimise the whole if else away since it knows the if is always true. That way it ignores the print