Jump to content

Can you do anything with pointers?

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
1 reply to this topic

#1
DarkLordoftheMonkeys

DarkLordoftheMonkeys

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 255 posts
That's sort of the impression I got, that pointers allow you to do all the neat stuff in C. For instance, if you wanted to display 3D graphics, you would access the graphics card through pointers to whatever memory component accesses them (I was going to say device drivers, but I think those are part of the operating system, so I'm confused). Am I right in thinking this? Also, do you need a profound knowledge of the underlying hardware to use pointers correctly?
Life's too short to be cool. Be a nerd.

#2
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
When writing a device driver, you will use pointers heavily for just that. However, you can use pointers for data structures without knowing the hardware.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog