Difference between global and local variable? All Questions › Category: Cpp Language › Difference between global and local variable? 0 Vote Up Vote Down chetan shidling asked 4 years ago I need short information. 1 Answers 0 Vote Up Vote Down chetan shidling answered 4 years ago The local variable can be accessed inside the function whereas the global variable can be accessed throughout the code.