tag:blogger.com,1999:blog-6314876008291942531.post3271966251292934406..comments2024-01-14T00:36:43.430-08:00Comments on Antonio Gulli's coding playground: Back to the basicsUnknownnoreply@blogger.comBlogger1125tag:blogger.com,1999:blog-6314876008291942531.post-27268462778761868842011-06-28T10:20:39.489-07:002011-06-28T10:20:39.489-07:00Depends on the compiler. Many modern compilers sto...Depends on the compiler. Many modern compilers store string literals in read-only memory. Any modification will result in access violation exception. We can catch such exceptions using kernel API like installExceptionHandlers() if supported.<br /><br />There are few compilers that store the string literals in RW memory. The program works as expected in such cases.Anonymoushttps://www.blogger.com/profile/09855100606552890649noreply@blogger.com