Heap memory or stack
Hi int* pi = new int; Above line in c++ would create int type pointer variable on stack... is this true ? Why it is true or false ?
This is something similar in Java. Object obj = new Object(); Here obj is a a reference variable which is created on the stack and new Object() is created on the heap. In the above case obj holds the reference to the new Object(). You can say that obj is pointing to new Object() which is on the heap but obj itself is on the stack.
Why are my users being logged as [object Object] when logging my array/user instead of giving me the values [name, age]?
JS in sololear is latest version or older? What do we use often VAR or LET and CONST?? I Have VAR is no longer used is it true??
difference in while loop
Somebody help me please 🥺
Kotlin get if Var doesn't exist