GoConqr hat ein neues Design! Sag uns, wie es dir gefällt.

Folien

Unit 2 - Data Basics: Variables

mamoun diab Englisch 5 Folien

Folien in diesem Satz (5)

  1. Definitions

    • Variable: is a named memory location which temporarily stores dat that can change while the program is running.\\
    • Final: is named memory location which temporarily stores data that remains the same throughout the execution of the program.
    • Type: indicate what kind of value it will store.
    • The name of the variable is know as its identifier.
    • A variable is given a value through an assignment statement.
  2. Rules for assigning variables

    • Assign short, int or long data when a variable is whole number
    • Assign float or double when decimals are needed.
    • Assign char if the variable will always contain only one character.
  3. Rules for naming variables

    • All variable names must begin with a letter of an alphabet, underscore _ OR $
    • Variables names may alsos contain letters and and th digits 0 to 9 no spaces
    • Uppercase characters are distinct from lowercase characters. Using ALL are primarily used to identify constant variables
  4. All Variables must be declared before they can be used

    • Choose the type you need
    • Choose name for variable
    • use the following format for a declaration statement.
    • you may declare more than one variable.
    • you may initialize a variable
  5. Folie 5

Informationen

Beschreibung
Folienset am Unit 2 - Data Basics: Variables, erstellt von mamoun diab am 25/02/2017.
Erstellt von
mamoun diab
Aufrufe
4
Bewertung

Feedback

Worum geht es?

Wie gefällt dir das neue Design?

Dein Eindruck