because when u pass an array, the address of memory location that is recievd in the func is accessible and write allowed also to u......so u dont get an error....
On Sun, Aug 28, 2011 at 5:17 PM, rohit <raman.u...@gmail.com> wrote: > Thanks for your reply himanshu, ...I am aware of the above stated fact but > my doubt is that when i pass this char array to a function and accept it as > a char pointer (char *a), and then when write a[0] = 'a', why don't i get an > error? > > -- > 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/-/uoEq0N1M1t0J. > > 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 Himanshu Kansal Msc Comp. sc. (University of Delhi) -- 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.