21 Oct
Ringkasan Algorithm & Programming and Introduction to C Programming (15 October 2015)
Selection definition
Syntax:
-if : If boolean expression resulting in True, then a statement or some statements will be executed.
-if-else : If boolean expression resulting in TRUE, then statement1 orĀ block statement1 will be executed, if FALSE then statement 2 or block statement 2 be executed
-switch-case : A statement that can be used to replace if-else, usually used when you want to make alot of statements.
Type of error:
-Compile-time error,caused by syntax error
-Link-time error,Success full compiled,but cause link error,Caused by no object code at link time
-Run time error,Successfully compiled,but error at runtime
-Logical error,Program run successfully but wring output

Respond to this post