t04AVariablesAndExpressionsOperators

t04AVariablesAndExpressionsOperators - Variable...

Info iconThis preview shows pages 1–5. Sign up to view the full content.

View Full Document Right Arrow Icon
Dale Roberts Variable Declarations, Data types, Expressions - Variables and Operators www.kite-legends.blogspot.com
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Dale Roberts Memory Concepts Memory Concepts Variables Variables Variable names (identifiers) correspond to locations in the Variable names (identifiers) correspond to locations in the computer's memory (von Neuman model) computer's memory (von Neuman model) Every variable has a name, a type, a size and a value Every variable has a name, a type, a size and a value Whenever a new value is placed into a variable (through Whenever a new value is placed into a variable (through scanf scanf , for example), it replaces (and destroys) the , for example), it replaces (and destroys) the previous value. (Destructive write) previous value. (Destructive write) Reading variables from memory does not change them Reading variables from memory does not change them A visual representation (memory map) A visual representation (memory map) 36443 int 45 i 4 bytes address value variable datatype size www.kite-legends.blogspot.com
Background image of page 2
Dale Roberts Keywords Keywords Keywords  auto double int struct break else long switch case enum register typedef char extern return union const float short unsigned continue for signed void default goto sizeof volatile do if static while www.kite-legends.blogspot.com
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Dale Roberts Expression Expression Expressions are computations that return a Expressions are computations that return a value. value. Like variables, a value is an instance of a Like variables, a value is an instance of a data type. data type.
Background image of page 4
Image of page 5
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 12/08/2010 for the course CSE 2017 taught by Professor Kittu during the Spring '10 term at APIIT.

Page1 / 13

t04AVariablesAndExpressionsOperators - Variable...

This preview shows document pages 1 - 5. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online