@Mohit

Output Will be:

5    5    "some chunk value"

Reason: When 'p' is assigning, we are assigning next memory location of
'ch'. similar we are assigning same memory location to 'q' as well but while
printing, we are printing the last memory location content of 'ch' (i.e
"p-1") and for 'q' we are printing its starting location so we will some
garbage value.

-- Prashant Kulkarni




On Mon, Aug 8, 2011 at 11:28 AM, Mohit Goel <mohitgoel291...@gmail.com>wrote:

>
>
> can anyone one explain output of question 1.....
>
>  --
> 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