Question: what are local and global variables in c?
Answer: There are three places where variables can be declared in C programming language − Inside a function or a block which is called local variables. Outside of all functions which is called global variables. In the definition of function parameters which are called formal parameters.