Pointers

Why it is used for?

Page 1 of 1

3 Replies - 662 Views - Last Post: 13 October 2007 - 07:43 AM Rate Topic: -----

#1 suryakantnaik@yahoo.co.in  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 11-October 07

Pointers

Posted 12 October 2007 - 07:27 PM

Why are pointers used and where is is necessary?
Is This A Good Question/Topic? 0
  • +

Replies To: Pointers

#2 Louisda16th  Icon User is offline

  • dream.in.assembly.code
  • member icon

Reputation: 15
  • View blog
  • Posts: 1,967
  • Joined: 03-August 06

Re: Pointers

Posted 12 October 2007 - 08:37 PM

Pointers help you to:
Manipulate strings.
Define dynamic arrays
Pass arrays into functions
Pass variables by reference
Manipulate files
And a whole lot of other things. Have you studied about pointers? You'll realize their use when you start using pointers. Pointers also allow smaller and cleaner code.
Was This Post Helpful? 0
  • +
  • -

#3 born2c0de  Icon User is offline

  • printf("I'm a %XR",195936478);
  • member icon

Reputation: 180
  • View blog
  • Posts: 4,667
  • Joined: 26-November 04

Re: Pointers

Posted 13 October 2007 - 12:46 AM

You can even check out the Pointers Tutorial on </dream.in.code>
Was This Post Helpful? 0
  • +
  • -

#4 csmanoj  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 10
  • View blog
  • Posts: 150
  • Joined: 06-August 07

Re: Pointers

Posted 13 October 2007 - 07:43 AM

Pointers are as close as you can get to a computer. You may write all the code in high level languages but down inside your computer, it's all about what is in the main memory. The functions you've written, the variables they use, user input, they are all stored as hexadecimal codes in the main memory. Pointers are the most direct way to access them.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1