I start learning and writing binary tree and I wonder if we define some variables does it just allocate the memory from ram by itself?
and we can even print its address out(by using &) that means it already has its own memory somewhere on our ram so I realized.
why do we have to use malloc,calloc function to allocate the memory again?
and we can even print its address out(by using &) that means it already has its own memory somewhere on our ram so I realized.
why do we have to use malloc,calloc function to allocate the memory again?