Assumed a given code:
int n;
while (n<100){ n--;}
n
isn't initialized. Therefore, what kind of error is it when you use an un-initialized variable?
As well, there is a chance that the loop would be infinite? In that case, is it a logical error or a run-time error?
(Generally, if accidentally there is an infinite loop in a certain code, is It a logical error or a rum-time error?).
Thanks a lot!