@poised: Since it is read only memory junk will be the output if and only if
we enter any string containing characters not inside [....]. If we try
entering something present within [....] i am getting segmentation fault.



*Muthuraj R
IV th Year , ISE
PESIT , Bangalore*



On Thu, Aug 4, 2011 at 6:21 PM, Poised~ <dip10c...@gmail.com> wrote:

> If you guys see the question properly it says,
>
> char *str = "junk";
>
> str points to a read only memory and can't be written over with any method.
> Since there is no change in str. Hence the output will be "junk",
> irrespective of any input.
>
> regex has been properly explained as above.
>
>  --
> 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/-/GLn4nI896ZkJ.
>
> 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