cpp = cp is valid.other one is not valid because the compiler places cp in read only memory.so we cannot change its address
On Fri, Aug 5, 2011 at 12:43 AM, Ankur Khurana <[email protected]>wrote: > dev cpp par chal jaenge , > ideone.com par try kar > cp=cpp nahi chalega . . > > > On Fri, Aug 5, 2011 at 12:40 AM, Kamakshii Aggarwal <[email protected] > > wrote: > >> i have a doubt regarding 3rd questions..acc to me both are valid...what is >> the correct answer? >> >> >> On Fri, Aug 5, 2011 at 12:27 AM, newOne <[email protected]> wrote: >> >>> 2 issues: >>> 1. no error handling for malloc failure( can be ignored) >>> 2. no memset for p&q. >>> >>> strcat will not work properly: as by definition it will search for the >>> null char in first string, removes it then copies the second string >>> including the null char of second string. >>> >>> -- >>> 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. >>> >>> >> >> >> -- >> Regards, >> Kamakshi >> [email protected] >> >> -- >> 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. >> > > > > -- > Ankur Khurana > Computer Science > Netaji Subhas Institute Of Technology > Delhi. > > -- > 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. > -- 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.
