CS Behind the Curtain (CS195 2003S)
Primary:
[Front Door]
[Current]
[Glance]
-
[Blurb]
[Disabilities]
[Honesty]
[Instructions]
[Links]
[Search]
[Syllabus]
Groupings:
[EBoards]
[Examples]
[Exams]
[Handouts]
[Homework]
[Labs]
[Outlines]
[Readings]
[Reference]
ECA:
[About]
[Grades]
[Quizzes]
[Submit Work]
[Change Password]
[Reset Password]
Misc:
[Walker/Fall 2001]
[SamR]
Back to Asymptotic Analysis. On to I/O Basics.
Held: Friday, 28 February 2003
Summary: Today we continue our exploration of functions by considering some cases in which pointers and functions interact.
Related Pages:
Notes:
permute
?
Overview:
#include
and #define
preprocessor directives.#include filename
#define name value
#define
name(formal1...formaln)
body
name(actual1...actualn)
with a copy of body in which each formal has been
replaced by the corresponding actual.
anytype, they can certainly return pointers.
int *alloc_int(void);
says that alloc_int
is a procedure that returns
a pointer to an integer.
int *alloc_int(void) { return (int *) malloc(sizeof(int)); } /* alloc_int */
function.
pointer to functiontype.
int (*foo)();
Tuesday, 7 January 2003 [Samuel A. Rebelsky]
Thursday, 24 February 2003 [Samuel A. Rebelsky]
Back to Asymptotic Analysis. On to I/O Basics.
Primary:
[Front Door]
[Current]
[Glance]
-
[Blurb]
[Disabilities]
[Honesty]
[Instructions]
[Links]
[Search]
[Syllabus]
Groupings:
[EBoards]
[Examples]
[Exams]
[Handouts]
[Homework]
[Labs]
[Outlines]
[Readings]
[Reference]
ECA:
[About]
[Grades]
[Quizzes]
[Submit Work]
[Change Password]
[Reset Password]
Misc:
[Walker/Fall 2001]
[SamR]
Disclaimer:
I usually create these pages on the fly
, which means that I rarely
proofread them and they may contain bad grammar and incorrect details.
It also means that I tend to update them regularly (see the history for
more details). Feel free to contact me with any suggestions for changes.
This document was generated by
Siteweaver on Fri May 2 14:20:38 2003.
The source to the document was last modified on Thu Feb 27 23:31:33 2003.
This document may be found at http://www.cs.grinnell.edu/~rebelsky/Courses/CS195/2003S/Outlines/outline.24.html
.
You may wish to
validate this document's HTML
;
;
Check with Bobby