C Program -Introduction to Programming - Outline | ECS 030, Study notes of Computer Science

Material Type: Notes; Class: Intro Prog&Prob Solving; Subject: Engineering Computer Science; University: University of California - Davis; Term: Spring 2002;

Typology: Study notes

Pre 2010

Uploaded on 07/31/2009

koofers-user-aw7
koofers-user-aw7 ๐Ÿ‡บ๐Ÿ‡ธ

10 documents

1 / 1

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
O
UTLINE
FOR
A
PRIL
12, 2002 ECS 30-A โ€” S
PRING
2002
Version of April 14, 2002 11:02 pm Page 1 of 1
Outline for April 12, 2002
Handouts
: More Sample C Programs
Reading
: Johnsonbaugh & Kalin pp. 230โ€“237, 305โ€“329
1. Greetings and felicitations!
a. Homework 2 to be handed out on Monday, will be due on April 29
2. copy1.c
a. strings (NUL-terminated arrays)
b. printing strings
3. copy2.c
a. definition of pointer; address of variables (&), dereferencing of pointer (*)
b. how it is used
c. pointer arithmetic (in the printf)
4. swaps.c
a. pointers and parameter lists
b. pointers and var paramaters
5. paa.c
a. str1copy: condition on for, explicit comparison
b. str1copy: condition on for, implicit comparison
c. str3cpy: condition on for, implicit comparison from assignment
d. str4cpy: pure pointers
6. fileio.c
a. like program 5 from first handout, but driven by files not standard input
b. show technique for developing this (program becomes function, add file I/O driver)
c. go through file manipulation functions

Partial preview of the text

Download C Program -Introduction to Programming - Outline | ECS 030 and more Study notes Computer Science in PDF only on Docsity!

O U T L I N E F O R A P R I L 1 2 , 2 0 0 2 E C S 3 0 - A โ€” S P R I N G 2 0 0 2

Version of April 14, 2002 11:02 pm Page 1 of 1

Outline for April 12, 2002

Handouts : More Sample C Programs Reading : Johnsonbaugh & Kalin pp. 230โ€“237, 305โ€“

  1. Greetings and felicitations! a. Homework 2 to be handed out on Monday, will be due on April 29
  2. copy1.c a. strings (NUL-terminated arrays) b. printing strings
  3. copy2.c a. definition of pointer; address of variables (&), dereferencing of pointer (*) b. how it is used c. pointer arithmetic (in the printf)
  4. swaps.c a. pointers and parameter lists b. pointers and var paramaters
  5. paa.c a. str1copy: condition on for, explicit comparison b. str1copy: condition on for, implicit comparison c. str3cpy: condition on for, implicit comparison from assignment d. str4cpy: pure pointers
  6. fileio.c a. like program 5 from first handout, but driven by files not standard input b. show technique for developing this (program becomes function, add file I/O driver) c. go through file manipulation functions