TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: KURT KUZBA
from: FRANK MASINGILL
date: 1998-05-11 18:17:00
subject: array of pointers

In the course of concentrating study of pointers I concocted the following 
construction:
      int one,two,three, four, five, six, seven;
      int *arrayptr[7] = {&one,&two,&three,&four,&five,&six,&seven};
    Evidently this is legal because my Borland Version 3 compiler doesn't 
complain.  But then, I tried several ways to try to use these addresses to 
display numbers and can't find the right combination.  I'm sure it's simple 
for you guys.  Please show me how I can access one of the values instead of 
an address.  If I know that I can code a loop - I think!!
    Thanks.
Sincerely
                        Frank
---
---------------
* Origin: Maybe in 5,000 years (1:396/17.2)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.