SE250:HTTB:Pointers:Introduction

From Marks Wiki
Jump to navigation Jump to search

<html>

<image src="http://www.rajithaonline.com/SE250/httb/pointers/final/intro_head.png" width="300" height="92" alt="Intro Header Logo" />

</html>

Previous Page Contents Next Page



Pointers enable programs to simulate call-by-reference and to create and manipulate dynamic data structures, that is, data structures can grow and shrink at execution time, such as linked list, queues, stacks and trees.

Pointers are variables whose values are memory addresses. Pointers contain the address of a variable that contains a specific value. In a nutshell, variable name directly references a value, and a pointer indirectly references a value.

Pointers should be initialized when they are defined or in an assignment statement.

Pointers - Link to more pointers notes

Real Life Example: An Absolute n00b's Guide

<html>

<embed src="http://www.orlybird.com/SE250/HTTB/pointers.swf" height="400" width="500" />

</html>

Extra stuff

My program owns all the memory?


Now on to the Basics

Previous Page Contents Next Page