User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the C++ section within the Software Development category of DaniWeb, a massive community of 427,419 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,484 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our C++ advertiser: Programming Forums

Pointers (archived tutorial)

Join Date: Sep 2004
Location: Overflow State
Posts: 183
Reputation: Stack Overflow is an unknown quantity at this point 
Rep Power: 5
Solved Threads: 4
Stack Overflow's Avatar
Stack Overflow Stack Overflow is offline Offline
C Programmer

Re: Pointers

  #5  
Sep 18th, 2004
Originally Posted by karthik
++*ptr will increment the value of the content of the location pointed by ptr.
» Ah, yes. Thank you for pointing that out.


Originally Posted by dampy
making call 2 times when one would work...
» The only reason I did this was because the first call on top is a declaration of my function, so my whole code is familiar with it. Some compilers compile source code from top to bottom, so if you write a function and call on one beneath it, it may not know what it is just yet. I only do it for good practice.


Originally Posted by kind4ever
and what adefintion of apointer?
» The difference between C and C++ pointers aren't much different. In fact check out this link, it covers most of the same syntax.
Following the rules will ensure you get a prompt answer to your question. If posting code, please include BB [code][/code] tags. Your question may have been asked before, try the search facility.

IRC
Channel: irc.daniweb.com
Room: #c, #shell
Reply With Quote  
All times are GMT -4. The time now is 5:07 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC