Copy Link
Add to Bookmark
Report

A TUTORIAL ON POINTERS AND ARRAYS IN C

eZine's profile picture
Published in 
Ted Jensen Tutorial
 · 2 years ago

A TUTORIAL ON POINTERS AND ARRAYS IN C

by Ted Jensen
Version 1.2 (HTML version)
Feb. 2000

This material is hereby placed in the public domain
Available in various formats via
http://www.netcom.com/~tjensen/ptr/cpoint.htm

TABLE OF CONTENTS

  1. Preface
  2. Introduction
  3. Chapter 1: What is a Pointer?
  4. Chapter 2: Pointer Types and Arrays.
  5. Chapter 3: Pointers and Strings
  6. Chapter 4: More on Strings
  7. Chapter 5: Pointers and Structures
  8. Chapter 6: More on Strings and Arrays of Strings
  9. Chapter 7: More on Multi-Dimensional Arrays
  10. Chapter 8: Pointers to Arrays
  11. Chapter 9: Pointers and Dynamic Allocation of Memory
  12. Chapter 10: Pointers to Functions
  13. Epilog

Welcome to Ted Jensen's Tutorial on
Pointers and Arrays in C

Version 1.2

Last Updated in Feb. 2001
(See Notes at bottom of this page.)This tutorial covers the basics of using pointers and arrays in the C programming language.

  • You can Read it Online:
  • Download it as a set of HTML pages compressed to a .ZIP File
  • Download it as the same set of pages compressed to a .EXE File which unzips itself under MS-DOS or Windows

The tutorial takes up about a dozen web pages. The printed version from either your browser or the text file is going to run around 2500 lines. (About 50 pages at 55 lines/page).

If you have questions or comments you can email me at tjensen@ix.netcom.com.
Notes regarding latest revision 1.2: Feb. 2002

I still program using an MS-DOS 16 bit command line compiler. Victor Volkman of http://www.hal9k.com/cug was kind enough to point out that most PC compilers today are 32 bit systems and as a result sizeof(int) is different on these systems. This version assumes a 32 bit system when discussing sizeof(int). This is made clear in Chapter 1.

I've no longer offer a plain text version of the tutorial. If you feel this is a must, please contact me.

← previous
loading
sending ...
New to Neperos ? Sign Up for free
download Neperos App from Google Play
install Neperos as PWA

Let's discover also

Recent Articles

Recent Comments

Neperos cookies
This website uses cookies to store your preferences and improve the service. Cookies authorization will allow me and / or my partners to process personal data such as browsing behaviour.

By pressing OK you agree to the Terms of Service and acknowledge the Privacy Policy

By pressing REJECT you will be able to continue to use Neperos (like read articles or write comments) but some important cookies will not be set. This may affect certain features and functions of the platform.
OK
REJECT