Allocating a string, and especially concatenating a string requires the program to talk to the memory manager and request it is information be stored there (even though you are storing , which is nothing, it still gets allocated to it is location in memory).