CSC161 2011S Imperative Problem Solving
[Skip to Body]
Primary:
[Front Door]
[Schedule]
[Piazzza]
-
[Academic Honesty]
[Instructions]
Current:
[Current Outline]
[Current EBoard]
-
[Current Assignment]
[Current Lab]
[Current Reading]
Groupings:
[Assignments]
[Documents]
[EBoards]
[Examples]
[Exams]
[Handouts]
[Labs]
[Outlines]
[Readings]
[Reference]
Related Courses:
[CSC195 2003S (Rebelsky)]
[CSC161 2009F (Coahran)]
[CSC161 2010S (Walker)]
[CSC161 2010F (Rebelsky)]
Misc:
[SamR]
[ISO]
[GNU Coding Standards]
This outline is also available in PDF.
Held: Monday, 18 April 2011
Summary: We consider pointers to functions in C.
Related Pages:
Notes:
Overview:
pointer to functionis a valid type.
RETURN_TYPE (*NAME)(PARAM_TYPES)
echo isn't relevant to function pointers,
but there were some questions, so ...
/**
* echo arg1 ... argn
* Print out the command line arguments.
*/
int
main (int argc, char *argv[])
{
while (--argc > 0)
printf ("%s%s", *++argv, (argc > 1) ? " " ; "");
printf ("\n");
return 0;
} // main
small valuesand
large values.
randomvalue (the
pivot) as the boundary between small and large.
Quicksort (stuff)
if zero or one elements
done!
pick a pivot
rearrange into small and large elements
sort the two halves
[Skip to Body]
Primary:
[Front Door]
[Schedule]
[Piazzza]
-
[Academic Honesty]
[Instructions]
Current:
[Current Outline]
[Current EBoard]
-
[Current Assignment]
[Current Lab]
[Current Reading]
Groupings:
[Assignments]
[Documents]
[EBoards]
[Examples]
[Exams]
[Handouts]
[Labs]
[Outlines]
[Readings]
[Reference]
Related Courses:
[CSC195 2003S (Rebelsky)]
[CSC161 2009F (Coahran)]
[CSC161 2010S (Walker)]
[CSC161 2010F (Rebelsky)]
Misc:
[SamR]
[ISO]
[GNU Coding Standards]
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 Tue May 10 10:34:35 2011.
The source to the document was last modified on Wed Jan 5 12:52:15 2011.
This document may be found at http://www.cs.grinnell.edu/~rebelsky/Courses/CSC161/2011S/Outlines/outline.41.html.