chapter 1 n.
Download
Skip this Video
Loading SlideShow in 5 Seconds..
Chapter 1 PowerPoint Presentation
Download Presentation
Chapter 1

Loading in 2 Seconds...

play fullscreen
1 / 11

Chapter 1 - PowerPoint PPT Presentation


  • 544 Views
  • Uploaded on

Chapter 1. Introduction to Programming in C. CSC 140. PROFESSOR: David L. Sonnier Derby 208 698-4270 TEXTBOOK: K. N. King, C Programming: A Modern Approach ( Available at the Lyon Bookstore ). Your Evaluation. Quizzes/Homework/Effort 10% Projects 3 0% Tests 40%

loader
I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
capcha
Download Presentation

PowerPoint Slideshow about 'Chapter 1' - libitha


An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript
chapter 1

Chapter 1

Introduction to Programming in C

csc 140
CSC 140

PROFESSOR:

David L. Sonnier

Derby 208

698-4270

TEXTBOOK:

K. N. King,

C Programming: A Modern Approach

(Available at the Lyon Bookstore)

your evaluation
Your Evaluation
  • Quizzes/Homework/Effort 10%
  • Projects 30%
  • Tests 40%
  • Final Exam (2 hours) 20%
introduction to c
Introduction to C
  • Objective: Learn to program, using Cas a vehicle
  • Programming languages: Language for communicating with a computer
    • Machine Code (Machine Language)
    • Assembly Language
    • High Level Language
  • The LINUX environment / Operating System
  • Writing your first C program – vi editor
  • Finding & fixing errors
terminology
Terminology
  • Compiler
  • Source code
  • Object code
  • Program
  • Operating System
  • Editor
history of linux
History of LINUX
  • UNIX Operating System – Developed at Bell Labs
  • LINUX – an “imitation” of UNIX developed by programmer Linus Torvalds and an international group of fanatics and enthusiasts in the 1990’s
  • “Open Source” operating system
  • Various versions: SUSE, Red Hat, etc.
  • Ideal operating system / programming environment
history of c
History of C
  • BCPL (Basic Computer Programming Language)
  • B – Developed from BCPL (~1970)
  • NB – “New B,” better suited for the PDP-11
  • C – Developed in the 1970’s.
  • C++ - Allows the object-oriented approach
characteristics of c
Characteristics of C
  • A “low-level” language; provides machine-level functionality with elements of a high-level language
  • A “small” language – limited set of features.
  • A “permissive” language – Assumes you know what you’re doing….allows you to make some BAD mistakes.
strengths
Strengths
  • Efficiency
  • Portability
  • Power
  • Flexibility
  • Standard Library
  • Integration with UNIX / LINUX
weaknesses
Weaknesses
  • Can be error-prone – BAD mistakes don’t get caught by the compiler
  • C Programs can be difficult to understand
  • C Programs can be difficult to modify
program pun c
Program: pun.c

/* Name: pun.c */

/* David L. Sonnier */

/* August 23 */

/* Pledged */

/* This program prints a REALLY BAD pun. */

#include <stdio.h>

//main() is where program execution begins.

main()

{

printf(“To C, or not to C: that is the question.\n”);

}