CSC161 2010F Imperative Problem Solving

Class 06: Types and Operators

Back to Getting Started with Emacs and Compiling C Programs. On to Basic Input and Output in C.

This outline is also available in PDF.

Held: Monday, 6 September 2010

Summary: We continue our explorations of the basic design of C, focusing on types in C.

Related Pages:

Notes:

Overview:

Questions and Answers

Hello World

Let's explore how one turns the K&R Hello World program into something that meets the GNU coding standards.

#include <stdio.h>

main()
{
    printf("hello world\n");
}

Compiling C Files

C Beyond K&R

Back to the Basics

Variable Names

Declarations

Assignment:

Primary Types

Enums

And More

Lab

Back to Getting Started with Emacs and Compiling C Programs. On to Basic Input and Output in C.

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 Wed Dec 8 10:57:01 2010.
The source to the document was last modified on Fri Aug 13 15:41:47 2010.
This document may be found at http://www.cs.grinnell.edu/~rebelsky/Courses/CSC161/2010F/Outlines/outline.06.html.

Samuel A. Rebelsky, rebelsky@grinnell.edu