notes9 - C Review: -C was created by Brian Kernighan &...

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

View Full Document Right Arrow Icon
C Review: -C was created by Brian Kernighan & Dennis Ritchie at Bell Labs (AT&T) -UNIX also was created at Bell Labs by Ken Thompson & Dennis Ritchie -C is a "High Level Assembly Language" that allows the same flexibility of Assembly Language but using a High Level Language with types, for, while, do, functions, etc. -C allows portability that is if you write a program in C, you can recompile it in any machine with a compiler, and it will run -UNIX was mostly written in C (95%) and 5% in assembly language. That allowed portibility. -C provides the "bare bones" of a computer language and leaves most of it to the programmer -C can be directly translated into assembler -C will not get in your way in programming. It does not have boundary checks. int a[10]; a[i]; 0<=i<10 a[11]=5; may or may not crash -No garbage collection Pointers: -It is a feature in C that made the language more popular than other high level languages -It allows optimization that was possible before only in assembly language -A pointer is a memory address
Background image of page 1

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

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 02/02/2012 for the course CS 251 taught by Professor Staff during the Fall '08 term at Purdue University-West Lafayette.

Page1 / 3

notes9 - C Review: -C was created by Brian Kernighan &amp;...

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

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