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.

Reply via email to