thiis is theexact thing i thought abt segmentation error...but it is again
system-dependent...if u wud try this on 7 or vista or XP...which are "high"
on resources it wont give error to that...but there is definately an error
in code...
but y do u think tht junk wont be overwritten? s is simply a pointer to a
memory address...contents can be changed whenever reqd...?

On Thu, Aug 4, 2011 at 8:51 PM, Poised~ <[email protected]> wrote:

> @ Muthu raj:
> My bad, didn't check it properly. It is surely a runtime error.
>
> @ Niteesh Mehra:
> That code is even more wrong.
> without assigning any memory to str, how will you copy anything into it?
> This will definitely be a runtime error.
> http://ideone.com/erEXf
>
> --
> 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/-/NrO6EJiurBkJ.
>
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> 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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to