local variables vs. Global

Sorry if this is a dumn question. I'm fairly new to programming.

Is it more efficient to memory allocation to use local variables whenever possible to global variables?

It seems like it would be, but I just figured I'd ask.
No. But global variables are bad for big projects. As here could be same names in global and local name space. So it is recommended not to use global variables. Global and local variables are in different places of memory.
Topic archived. No new replies allowed.