Overview of Computers and Programming

Main Components of a computer

Memory Concepts

Programming, and Programming Languages

Building Programs

Software development

Involves more than just writing code

Basic Creation and Execution of a C program

  1. Create source code with a text editor, store to disk
  2. Preprocessor -- Part of compiler process, performs any pre-processing tasks on source code
  3. Compilation -- syntax checking, creation of object code
  4. Linking -- Final stage of the creation of an executable program. Linking of object code files together with any necessary libraries (also already compiled)
  5. Execution of program

Integrated Development Environments

Programming is about Problem Solving


A sample C program

#include <stdio.h>		/* Pre-processor directive */

int main()			/* main function, start of program */
{
  int year = 2006;		// a integer variable declaration
  char entry;			// a character variable

  printf("Welcome to C Programming, Summer %d\n", year);
  printf("Enter 'x' to quit: ");
  scanf("%c", &entry);		// read input from user

  printf("Goodbye!\n");

  return 0;			// return value to operating system
}
A link to this code file