Upgrade to Pro — share decks privately, control downloads, hide ads and more …

3 - Statements and Operators.pdf

Sponsored · Your Podcast. Everywhere. Effortlessly. Share. Educate. Inspire. Entertain. You do you. We'll handle the rest. →
Avatar for tnngo tnngo
April 07, 2012
64

3 - Statements and Operators.pdf

Avatar for tnngo

tnngo

April 07, 2012

Transcript

  1. Types of Statements Selection | if, else, switch, case Iteration

    | for, foreach, while Jump | break, continue, default, goto, return, yield Exception Handling | throw, try-catch, try-finally, try-catch-finally Checked and Unchecked Fixed | fixed, unsafe Lock
  2. Conditional Operators AND (&&) evaluates the second expression only if

    the first one return true. https://gist.github.com/2318365 OR (||) evaluates the second expression only if the first one return false. https://gist.github.com/2318398
  3. Implicit typecasting (Coercion) refers to an automatic conversion of data

    type done when the destination data types belong to the same hierarchy and the destination data type must hold a larger range of values than the source data type https://gist.github.com/2318445
  4. Explicit typecasting refers to changing a data type of higher

    precision into a data type of lower precision. the destination data type hold a smaller range of values than the source data type <tager data type> <variable name> = (target data type) <source data type>; https://gist.github.com/2318452