When do I specifically use Pointers?

This is a discussion on When do I specifically use Pointers? within the C++ Programming forums, part of the General Programming Boards category; So basically, non-pointer variables are limited by memory, and pointers are free to use as much memory? so to speak? ...

  1. #31
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    22,271
    So basically, non-pointer variables are limited by memory, and pointers are free to use as much memory? so to speak?
    Any variable, including a pointer, has a given size. A pointer may point to a region of memory only limited by what is available to the program.
    C + C++ Compiler: MinGW port of GCC
    Version Control System: Bazaar

    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  2. #32
    Registered User
    Join Date
    May 2008
    Posts
    141
    Quote Originally Posted by laserlight View Post
    Any variable, including a pointer, has a given size. A pointer may point to a region of memory only limited by what is available to the program.
    You guys should definitely consider a thanks button. I'm having the urge to do it.

  3. #33
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Posts
    23,012
    Make a good quote to thank someone
    Like
    "Thanks laserlight! How the hell do you know everything?!"
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  4. #34
    Registered User
    Join Date
    May 2008
    Posts
    141
    Quote Originally Posted by Elysia View Post
    Make a good quote to thank someone
    Like
    "Thanks laserlight! How the hell do you know everything?!"

    Yeah, and I could give others who are trying to learn C/C++ programming aswell, a recommendation to go to cprogramming.com, and the forums for help.

Page 3 of 3 FirstFirst 123
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Staticly Bound Member Function Pointers
    By Polymorphic OOP in forum C++ Programming
    Replies: 29
    Last Post: 11-28-2002, 01:18 PM
  2. API "Clean Up" Functions & delete Pointers :: Winsock
    By kuphryn in forum Windows Programming
    Replies: 2
    Last Post: 05-10-2002, 07:53 PM
  3. Pointers pointers pointers...
    By SMurf in forum C Programming
    Replies: 8
    Last Post: 10-23-2001, 05:55 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21