When is the string literal \"hello\" allocated and deallocated during the lifetime of the program in this example?
init(char **s) { *s = \"hello\"; } int
The string literal is initialised into read-only memory segment by the compiler. There is no initialisation or removal done at run-time.