+ 2
Will memory allocation happen if I simply use the value instead of storing them in a variable?
Assume I've a dictionary "dict" of type <string, int>, and a entry {"lol", length}. If i simply try get the value for lol by typing dict["lol"] without storing the value in a variable and using the variable name instead, will the memory be allocated for the string litral?
3 odpowiedzi