Home > other >  C Function Unexpected Result
C Function Unexpected Result

Time:11-06

I create function totalLulus (Counts how many people that pass from int kkm), and nilaiTerbesar (Find the highest number from nilaiUser), but when I input number less than 56(kkm), the function totalLulus will send the output 1, but I expected to 0, because it means nobody pass from the kkm.

And then when I insert jumlahSiswa more than 4, function nilaiTerbesar will send the output random number like 1975579936, it makes me confusing till now

  • Related