Introducing C Chapter 1 Copyright © 2008 W. W. Norton & Company.

Slides:



Advertisements
Similar presentations
C language was developed in early 1970s by Dennis Ritchie at Bell Laboratories to implement the UNIX operating system on the PDP-11 manufactured by DEC.
Advertisements

Transition from C to C++ …and a Review of Basic Problem Solving.
Unix Continuum of Tools Do something once: use the command line Do something many times: –Use an alias –Use a shell script Do something that is complex.
Tuesday, December 05, 2006 I hear and I forget, I see and I remember, I do and I understand -Chinese Proverb.
Chapter 8 The Tower of Babel. Chapter Outline Procedural languages Fortran, COBOL, PASCAL, C, Ada Object-oriented programming Special-purpose languages.
Brief History of C and Unix Systems Programming Concepts.
C: A VERY BRIEF HISTORY & STANDARDS © 1/4.
Principles of Programming Chapter 1: Introduction  In this chapter you will learn about:  Overview of Computer Component  Overview of Programming 
Introduction to High-Level Language Programming
Welcome In The World Of ‘C’.  TEXT BOOK: Programming in ANCI ‘C By: E Balagurusamy. TMH  Reference Books: 1) The ‘C Programming Language By: Kernighan.
1 Lecture 2 : Computer System and Programming. Computer? a programmable machine that  Receives input  Stores and manipulates data  Provides output.
 2008 Pearson Education, Inc. All rights reserved Introduction to Computers, the Internet and World Wide Web.
C++ Programming. Table of Contents History What is C++? Development of C++ Standardized C++ What are the features of C++? What is Object Orientation?
Chapter 1 Engineering Problem Solving 1. Hardware and Software 2 A computer is a machine designed to perform operations specified with a set of instructions.
Chapter 2: C Fundamentals Copyright © 2008 W. W. Norton & Company. All rights reserved. 1 Chapter 1 Introducing C.
CIS 15 - Advanced Programming Techniques Using C Professor Yedidyah Langsam 525NE icq: AOL IM: BCCISProf.
CSCI 130 Chapter 1. History of C Bell Telephone Laboratories (1972) Dennis Ritchie (also created UNIX) A - B - C.
Language C (1) By Randa. Generalities: Types of programmes: -operating system ”système d’exploitation” like Windows XP, Windows 98, Unix, Linux… -programmes.
Computer Software Chapter 4 McGraw-Hill/IrwinCopyright © 2011 by The McGraw-Hill Companies, Inc. All rights reserved.
C Programming Language Bill Jensen CS 354 May, 3 rd 2007.
Introduction to C++ Programming Language
Introduction to Programming Lecture No. 1. Books  Deitel & Deitel :– C++ How to Program  Kernighan and Ritchie:- The C Programming Language.
INTRODUCTION TO COMPUTING CHAPTER NO. 04. Programming Languages Program Algorithms and Pseudo Code Properties and Advantages of Algorithms Flowchart (Symbols.
1 Lecture 2 : Computer System and Programming. Computer? a programmable machine that  Receives input  Stores and manipulates data  Provides output.
EG280 Computer Science for Engineers Fundamental Concepts Chapter 1.
CGS 3460 Course Web Site –Get CISE Account –Submit via Web Ct –Late Policy –50% Per Day –Missubmission policy –Academic Honesty –Class Scheduling.
Spring 2012 CS 214 Programming Languages. Details Moodle! REQUIRED text: Sebesta, Programming Language Concepts, 9ed. Important dates: February 17: Project.
Programming Fundamentals Lecture No. 2. Course Objectives Objectives of this course are three fold 1. To appreciate the need for a programming language.
Chapter 1: Introducing C Copyright © 2008 W. W. Norton & Company. All rights reserved. 1 Chapter 1 Introducing C.
Principles of Programming Chapter 1: Introduction  In this chapter you will learn about:  Overview of Computer Component  Overview of Programming 
COP 3275 Chapter 01 course website: Jonathan C.L. Liu, Ph.D. CISE Department University of Florida.
1. Introducing C Lecturer: Chih Hung Wang Fall 2010 Programming Design (I) Modified from: C Programming – A Modern Approach 2008 W. W. Norton & Company.
Agenda UNX122_022_w1_p3 Overview of UNIX
 Getting ready to code Lecture 1 Match 4, Course syllabus 
© Copyright 1992–2004 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1 Chapter 1 – Introduction to C.
Introduction to C Programming Language. History of C  C was evolved by Dennis Ritchie at AT&T Bell Laboratories in early of 1970s  Successor of: ALGOL.
An overview of C Language. Overview of C C language is a general purpose and structured programming language developed by 'Dennis Ritchie' at AT &T's.
Copyright © 2014 Pearson Addison-Wesley. All rights reserved. Chapter 2 C++ Basics.
Introduction to Programming
CSC141 Introduction to Computer Programming Programming Language.
Fundamentals of Programming C++ Programming Language CS 1400 Dennis A. Fairclough Version 1.1 C++ Programming Language CS 1400 Dennis A. Fairclough Version.
Programming Languages
PRG 420 Entire Course FOR MORE CLASSES VISIT PRG 420 Week 1 Individual Assignment Hello world PRG 420 Week 2 Individual Assignment.
HIGH-LEVEL LANGUAGE PROGRAMMING PARADIGMS. Programming languages come in many forms or 'paradigms'. Each form of language offers advantages over other.
Chapter 1: Introducing C Copyright © 2008 W. W. Norton & Company. All rights reserved. 1 Chapter 1 Introducing C.
C language--Introduction. History 1970: B by Ken Thompson at AT&T Bell Lab 1972: C by Dennis Ritchie and Ken Tompson at At&T Bell Lab for UNIX 1978: “The.
Chapter Goals Describe the application development process and the role of methodologies, models, and tools Compare and contrast programming language generations.
Introduction to programming
1. INTRODUCING C.
LESSON 1 Introduction to Programming Language
PRG 420 NERD Marvelous Learning / prg420nerd.com
Welcome to CSE1002.
Computer System and Programming
C Language VIVA Questions with Answers
History of ‘C’ Root of the morden language is ALGOL It’s first
Intro to Programming Week # 1 Hardware / Software Lecture # 2
Introducing C Chapter 1 Copyright © 2008 W. W. Norton & Company.
Introducing C Chapter 1 Copyright © 2008 W. W. Norton & Company.
Overview of C.
CGS 3460 Course Web Site Get CISE Account.
Introduction to C Programming Language
Welcome In The World Of ‘C’.  TEXT BOOK: Programming in ANSI ‘C By: E Balagurusamy. TMH  Reference Books: 1) The ‘C Programming Language By: Kernighan.
Chapter 4 Computer Software McGraw-Hill/Irwin
Computer Programming Machine and Assembly.
Shared Memory Programming
Introduction to Computer Programming
Introducing C Chapter 1 Copyright © 2008 W. W. Norton & Company.
C Programming Language
How can I learn C language?
CSC215 Lecture Introduction.
Presentation transcript:

Introducing C Chapter 1 Copyright © 2008 W. W. Norton & Company. All rights reserved.

Properties of C C is an imperative computer programming language. Low-level It is based on program statements to describe the operations in details. Small Compiler and library codes take little memory space. Permissive (allows all kinds of low level coding) Flexibility is a disadvantage as well as an advantage. It may not warn you if you make mistakes in coding, assuming that you made it on purpose. Copyright © 2008 W. W. Norton & Company. All rights reserved.

Origins of C C is a by-product of UNIX, developed at Bell Laboratories by Ken Thompson, Dennis Ritchie, and others. The language was stable enough by 1973 that UNIX could be rewritten in C. Copyright © 2008 W. W. Norton & Company. All rights reserved.

Standardization of C K&R C C89/C90 C99 Described in Kernighan and Ritchie, The C Programming Language (1978) De facto standard C89/C90 ANSI standard X3.159-1989 (completed in 1988; formally approved in December 1989) International standard ISO/IEC 9899:1990 C99 International standard ISO/IEC 9899:1999 Incorporates changes from Amendment 1 (1995) Copyright © 2008 W. W. Norton & Company. All rights reserved.

C-Based Languages C++ includes all the features of C, but adds classes and other features to support object-oriented programming. Java is based on C++ and therefore inherits many C features. C# is a more recent language derived from C++ and Java. Perl has adopted many of the features of C. Copyright © 2008 W. W. Norton & Company. All rights reserved.

Strengths of C Weaknesses of C Efficiency Portability Power Flexibility Standard library Integration with UNIX Programs can be error-prone. (Open to errors) Programs can be difficult to understand. Programs can be difficult to modify. Copyright © 2008 W. W. Norton & Company. All rights reserved.

Effective Use of C Learn how to avoid pitfalls. Use software tools (lint, debuggers) to make programs more reliable. Take advantage of existing code libraries. Adopt a sensible set of coding conventions. Avoid “tricks” and overly complex code. Stick to the standard. Copyright © 2008 W. W. Norton & Company. All rights reserved.