Learn How to Program in C

by
Dr. Kristin Switala

Introduction

Directives

Variables

Conditionals

Loops

Arrays

Pointers

Strings

Functions

Structures


Site Map

Projects: Pointers (c)

Instructions: Create a C program that runs successfully for each project below.


Project 1

Make a program to finish this chart:

Number | Address | Pointer's Address
5432
6543
7654
8765


Project 2

Using incrementing pointers, make a program to finish this set of statements:

Number | Address | Pointer's Address
6
7
8
9


Project 3

Using a pointer to change the variable's value, make a program to calculate the following:

Our company takes 98237 tourist photos per week.
That means we take ___ photos per day.
In a month, we should expect to take ____ photos.
That's ___ photos per year!

Copyright
© 2001
Kristin Switala
Hosted by www.Geocities.ws

1