as we all know there are a CPU it like a brain of computer that manage all operation happen in the pc
and there are HARD DISK &MEMORY
HARD DISK is the place we save our data in and code if the CPU TRY TO do this operation like execute or compiling in the hard disk it will take al looooong time to do it so the are a RANDOM ACCESS MEMORY “RAM” ram is faster than hard disk so the CPU the data to memory to do all operation in the memory then run the programing
this why we use data structure
data structure : way to save data in organization way to get best performance of it and make it easy to get access to our data .
static memory allocation
inside the memory we have three main places
code