3156-20 - COMS W3156 Software Engineering Fall 2001...

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

View Full Document Right Arrow Icon
COMS W3156: Software Engineering, Fall 2001 Lecture #20: C, continued Janak J Parekh [email protected]
Background image of page 1

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

View Full Document Right Arrow Icon
Next class Finish up C discussion C++
Background image of page 2
Today’s class Continue C Guest lecture at 6
Background image of page 3

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

View Full Document Right Arrow Icon
C for the Java programmer Java “ripped off” C Java widely considered “C with classes” More like C than C++ for/while, if-then-else, switch (broken) all adopted perfectly from C Operators, ++/--, etc. Functions very similar to methods But no objects!
Background image of page 4
C’s data types Similar to Java’s lower-case types char, int, short, long, single, double no boolean – use 0 or 1 Common practice: #define TRUE 1 C is not strongly typed int i = ‘c’; As a matter of fact, chars are just bytes Different structures have different sizes Formal mechanism for references: pointers Address of structure in machine’s memory!
Background image of page 5

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

View Full Document Right Arrow Icon
Can accomplish similar functionality as references in Java, but far more manual (and flexible)
Background image of page 6
Image of page 7
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

Page1 / 11

3156-20 - COMS W3156 Software Engineering Fall 2001...

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

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