The ________ keyword in C is used to give a reference to a variable that is already defined in some other scope.
- auto
- extern
- register
- static
In C, the extern keyword is used to give a reference to a variable that is already defined in some other scope. It is often used to access global variables that are defined outside the current function or block. This keyword allows you to use variables across different scopes.
Loading...
Related Quiz
- The use of ________ allows for dynamic memory allocation for arrays in C.
- What happens if you try to modify a character in a string literal?
- Which keyword is used in C to create an alias for a data type?
- What is the purpose of an array in C?
- What is the significance of the return type in a function declaration in C?