home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Microsoft Programmer's Library 1.3
/
Microsoft-Programers-Library-v1.3.iso
/
sampcode
/
c
/
other
/
learn
/
ptrptr.c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
NeXTSTEP
RISC OS/Acorn
UTF-8
Wrap
C/C++ Source or Header
|
1988-10-07
|
196 b
|
12 lines
/* PTRPTR.C: Demonstrate a pointer to a pointer. */
#include <stdio.h>
main()
{
int val = 501;
int *ptr = &val;
int **ptr_ptr = &ptr;
printf( "val = %d\n", **ptr_ptr );
}