Boss.. thats kinda bit basic to ask anyways.. lemme give bit of details.

Languages with pointer have WAY more flexibility to write a code upto any
segment (I mean lower layer of programming like Device Driver) as they are
directly talking to memory, where as if we don't have pointer we need to
take a help of mechanism other than pointer to talk with raw memory.

       So, basically, U can say that pointer are the basic back bone of
memory management in any language. Infact, If U use Java and Say if don't
have pointer that U are wrong , even java use pointer's but in background
with the help of JVM.

     As far as my expr is concern, with pointer lang is easy to learn and
code but in long run you will loose the charm of coding.

  In above comment, I would assume we are considering the programming
languages and not the scripting languages.

On Wed, Jan 2, 2013 at 11:03 AM, shady <sinv...@gmail.com> wrote:

> optimization of what ?
> can you explain your answer ?
>
>
> On Wed, Jan 2, 2013 at 10:31 AM, rahul <rahulr...@gmail.com> wrote:
>
>> Optimization.
>>
>> On Wed, Jan 2, 2013 at 1:35 AM, shady <sinv...@gmail.com> wrote:
>>
>>> Why do we use pointers at all considering space as a factor.... other
>>> than allocating memory dynamically does it have any other use ?
>>>
>>> to store an integer
>>> (int *) = 8 bytes, and while making it point to an integer location
>>> would cost another 4 bytes, total = 12 bytes ... compared to directly
>>> taking (int) = 4 bytes
>>>
>>> --
>>>
>>>
>>>
>>
>>  --
>>
>>
>>
>
>  --
>
>
>

-- 


Reply via email to