Why are pointers used and where is is necessary?
PointersWhy it is used for?
Page 1 of 1
3 Replies - 620 Views - Last Post: 13 October 2007 - 07:43 AM
Replies To: Pointers
#2
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.
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.
#3
Re: Pointers
Posted 13 October 2007 - 12:46 AM
You can even check out the Pointers Tutorial on </dream.in.code>
#4
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.
Page 1 of 1
|
|

New Topic/Question
Reply




MultiQuote




|