P.Lecture - 1.17.08

P.Lecture - 1.17.08 - EE312 Lecture 2 Announcements Topics...

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

View Full Document Right Arrow Icon
EE312 ‐ Lecture 2 nnouncements Announcements Topics for today will answer the questions: Survey Results What is the C programming language ? hat is C sn ta ? What is C syntax ? Assignment statement umerical expressions Numerical expressions Number storage formats (in Ch. 7) Will use formatted IO functions: printf(), scanf() These are in Ch. 3 and will be covered next time 1
Background image of page 1

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

View Full DocumentRight Arrow Icon
verall Score (out of 5) Overall Score (out of 5) 4% 0% 14% 5 42% 9% 4 3 2 19% 1 0 21% 2
Background image of page 2
06 Questions 306 Questions 2% 25% 2 1 0 73% 3 3
Background image of page 3

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

View Full DocumentRight Arrow Icon
rogramming Experience Programming Experience 1.2 0.8 1 f Class 0 months 6 months 0.4 0.6 Percentage o < 6 months 6 12 months 12 18 months 18 24 months 0.2 > 24 months 0 Java C++ C Web 4 Other Languages Mentioned: Cobol, Tcl/Tk, Basic, VB
Background image of page 4
troducing C Introducing C The history The basics of the language 5
Background image of page 5

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

View Full DocumentRight Arrow Icon
The History of C Designed and implemented by Dennis Ritchie of Bell Labs between 1969 and 1973 Created as the implementation language for UNIX Named after the B language, its immediate predecessor B was originally named after the BCPL language Became popular during the 1980s, both for UNIX rogramming and for developing applications for PCs pg g pp 1980 Bjarne Stroustrup created “C with classes” Led to C++ Dennis Ritchie’s article, “The Development of the C Language,” can be found on the web at bell bs com/cm/cs/who/dmr/chist html 6 cm.bell labs.com/cm/cs/who/dmr/chist.html.
Background image of page 6
Versions of C K&R C escribed in Kernighan and Ritchie, The C Programming Described in Kernighan and Ritchie, The C Programming Language, Prentice Hall, 1978 ANSI C (ISO C, C89) ANSI standard X3.159 1989 (completed in 1988; formally approved in December 1989) International standard ISO/IEC 9899:1990 / Described in Kernighan and Ritchie, The C Programming Language, Second Edition, Prentice Hall, 1988 C99 International standard ISO/IEC 9899:1999 ight variations by compiler maker 7 Slight variations by compiler maker
Background image of page 7

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

View Full DocumentRight Arrow Icon
The C Language yntax and Semantics ‐ Syntax and Semantics Syntax : rm grammar lexical structure Very precise Form, grammar, lexical structure. Very precise. Will give syntax rules for constructs of the language. rger constructs are built from smaller constructs mantics Larger constructs are built from smaller constructs. THIS PART IS FRUSTRATING!! Semantics : The constructs have meaning and behavior. particular element of the language causes the A particular element of the language causes the computer to make something happen. THIS PART IS CHALLENGING!! 8 We will focus on syntax and structure today
Background image of page 8
Syntactic Analogy C Program English Paper Program Functions Theme paper Paragraphs Statements ords/punctuation Sentences ords/punctuation Words/punctuation (aka, tokens ) Words/punctuation Symbols from the C alphabet Symbols from the English alphabet 9 From larger to smaller constructs
Background image of page 9

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

View Full DocumentRight Arrow Icon
Structure of a C Program Contains one or more named functions, one of which is the main function (i.e., the place to start execution) ft i i d (b ) i t tii t ftt t th t
Background image of page 10
Image of page 11
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 03/22/2008 for the course EE 312 taught by Professor Shafer during the Spring '08 term at University of Texas.

Page1 / 46

P.Lecture - 1.17.08 - EE312 Lecture 2 Announcements Topics...

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

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