What is the difference between local and global memory allocation?

global memory it is decide outside of your scope and we can access it in all of your scope