What is a variable declared within a block or a function known as?
- Dynamic variable
- Local variable
- Private variable
- Public variable
A variable declared within a block or a function is known as a local variable, and its scope is limited to that specific block or function.
Loading...
Related Quiz
- In a database application, you need to sort a list of names (strings) in alphabetical order. Which string handling function might be useful in this scenario?
- Which statement is true regarding the difference between inline functions and macros in C?
- How can a dangling pointer issue be avoided after freeing memory in C?
- In C, when an array is passed to a function, is it passed by value or by reference?
- The preprocessor directive ________ is used to include libraries in a C program.