Hi,
Pointers are in a lot of cases faster to use than
variables. As stated in a previous post, type *name
declares a pointer, pointers can only point to the
type declared unless cast to another type. Be careful
with casting though. Their are two other unary
operators for pointers, the & and the *. The & is the
"address of operator". Ex: p=&variable name;
The other operator is *, "at address". Ex: cout << *p
<< endl; This will print what the value of the
variable pointer to is.

Ex: int *p,value=100;
    p=&value;
    printf("%d",*p) //prints 100
    printf(p) //will print the address not 100

This also just scratches the surface though. I like
books by Herb Schildt, he's easy to understand and
detailed.
Hope this helps,
Darryl 


                
__________________________________ 
Do you Yahoo!? 
Dress up your holiday email, Hollywood style. Learn more. 
http://celebrity.mail.yahoo.com





------------------------ Yahoo! Groups Sponsor --------------------~--> 
$4.98 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/Q7_YsB/neXJAA/yQLSAA/EbFolB/TM
--------------------------------------------------------------------~-> 

>-----------------------------------------~-~>
CHECK THE ARCHIVE BEFORE POSTING!!!! Archive is available at 
http://www.eScribe.com/software/C-Paradise/

>------------------------------------------_->


 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/C-Paradise/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to