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 5 years ago I need short information. 1 Answers 0 Vote Up Vote Down chetan shidling answered 5 years ago The local variable can be accessed inside the function whereas the global variable can be accessed throughout the code.