Question: what is difference between local and global variable in c?
Answer: Originally Answered: What is the difference between the local variable and global variable in C? A local variable is defined inside a function. It is available only in the function in which it is defined. A Global variable is defined outside all the functions defined in a program.