It might give a run time error because q contains a garbage value, when we
do q+j, this address may belong to some other process. Since memory of a
process is protected from others, it may give a run time error.


Sanju
:)



On Mon, Aug 22, 2011 at 11:56 AM, sagar pareek <sagarpar...@gmail.com>wrote:

> it gives runtime error...
> coz u have to allocate memory to *q
>
> On Tue, Aug 23, 2011 at 12:02 AM, Abhishek 
> <mailatabhishekgu...@gmail.com>wrote:
>
>> i think.. it will not produce error, but o/p 'may' be garbage values.
>> since the memory locations adjacent to *q will be overwritten.
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Algorithm Geeks" group.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msg/algogeeks/-/X1CZmpVjhxEJ.
>>
>> To post to this group, send email to algogeeks@googlegroups.com.
>> To unsubscribe from this group, send email to
>> algogeeks+unsubscr...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/algogeeks?hl=en.
>>
>
>
>
> --
> **Regards
> SAGAR PAREEK
> COMPUTER SCIENCE AND ENGINEERING
> NIT ALLAHABAD
>
> --
> You received this message because you are subscribed to the Google Groups
> "Algorithm Geeks" group.
>  To post to this group, send email to algogeeks@googlegroups.com.
> To unsubscribe from this group, send email to
> algogeeks+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/algogeeks?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to