Re: [Dev-C++] What's the difference?
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Adam M. <up...@in...> - 2003-03-03 18:30:55
|
Hi. If you don't need pointers - don't use them. Unfortunately sometimes it is indispensable to use pointers. One little and simple example: when you want to pass argument to function and this function chages its value. To do this you must pass pointer or reference to the argument. And one more usage of pointers - dynamic memory allocation. regards Adam > Hi coders, > > what's the difference between using pointers and using simple variables? How > does this difference affects the performance of my code? I know that using > pointers is working with memory addresses but using simple variables would > not have the same effect? > > int *number or int number: what's the best to be used? > > > Thanks! ---------------------------------------------------------------------- KLIKAJ!!! Nie pytaj dlaczego... >>> http://link.interia.pl/f16e2 |