Selection
- If => 1 Statement => True or False
- If else => > 1 Statement
- Switch case => Expression
Nested If
example: if (......);
else
if(......);
else
if(.....);
Error Types:
•Compile-Time Error
–caused by syntax error
•Link-Time Error
–success fully compiled, but cause
link error
–caused by no object code at link
time
•Run-Time Error
–successfully compiled, but error at
run time. Usually caused by numerical operation such as:
overflow, floating
point underflow, division by zero, etc.
•Logical Error
–wrong result caused by incorrect
logical flow/algorithm
Tidak ada komentar:
Posting Komentar