Want to know in C programming language declaring a global variable without static, belongs to which storage type out of auto, extern, static, reg?
Global variable belongs to which storage type in c?
209 Views Asked by Manju At
1
There are 1 best solutions below
Related Questions in C
- Passing arguments to main in C using Eclipse
- kernel module does not print packet info
- error C2016 (C requires that a struct or union has at least one member) and structs typedefs
- Drawing with ncurses, sockets and fork
- How to catch delay-import dll errors (missing dll or symbol) in MinGW(-w64)?
- Configured TTL for A record(s) backing CNAME records
- Allocating memory for pointers inside structures in functions
- Finding articulation point of undirected graph by DFS
- C first fgets() is being skipped while the second runs
- C std library don't appear to be linked in object file
- gcc static library compilation
- How to do a case-insensitive string comparison?
- C programming: Create and write 2D array of files as function
- How to read a file then store to array and then print?
- Function timeouts in C and thread
Related Questions in VARIABLES
- Simplexml get path from variable
- Python - Dynamically naming variables
- Azure Web App PATH Variable Modification
- How can I pass variable to ansible playbook in the command line?
- Fetching URL vars into form and submitting to other page
- Iframe not passing url parameters
- Stata: Retrieve variable label in a macro
- How to make all variables in javascript script have two decimal points
- Javascript works with HTML but not in Rails
- Running Line of code twice causes activeX error 0x8000ffff
- Erlang syntax error unclear
- CMD specifying columns to save?
- Simplify code with sending Methods as Variable
- Calling a variable in Matlab without using the full name?
- How to call c-style cleaner functions implicitly?
Related Questions in DECLARATION
- Function returning another function
- Is "long long" = "long long int" = "long int long" = "int long long"?
- What is the point of declaring a variable as one class, and allocating memory to it with another class?
- In which part of memory different variables get stored? Who will assign the value to it before starting main?
- What's the benefit for a C source file include its own header file
- Error: Not found: Value S (Scala)
- How to properly declare handlers
- Php Variable declaration error - MySQL
- Where is the AMPathPopUpButton class declared?
- Expected identifier in C
- C++ declaring multiple variables in the same line
- cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'oxm:jaxb2-marshaller'
- C++ constructor bug
- Error w/declaration on else statement (C++)
- Angular: when using ng-include, number variable become NaN
Related Questions in LINKAGE
- Unresolved external symbol with QImage in Qt Creator
- Linkage and static function confusion
- The same library defines different symbols under 16.04 and under 14.04
- Go package linkage with a C library
- Can't manage to link a cpp file - unresolved external symbol
- How to automake C source files
- Difference between constexpr and static constexpr global variable
- Linkgage between COBOL and HLASM (Assembly) with more than 32Kbytes
- Unable to call C++ function from a C code
- C++ standard: do namespace-scoped constexpr variables have internal linkage?
- C++: name of a value may have linkage
- Why can't templates be within extern "C" blocks?
- How can I prove that inline functions default to internal linkage?
- Does it make sense to have a static global variable in a header file?
- why do " int ClassName :: VariableName " always needed to complete linkage?
Related Questions in STORAGE-DURATION
- Must static objects generally be initialized?
- Does Python have static objects, stack objects and heap objects?
- Are the static data members and static methods of a class in C++ static objects?
- Meaning of "Minimum storage duration" of Google Cloud storage
- Initializing local array variable in C
- Linked list without malloc
- What's the meaning of "block is entered recursively"?
- Return compound literal
- Global variable belongs to which storage type in c?
- Why did I write the declaration into the main function that the program does not run
- Why aren't constexpr const scoped variables implicitly static?
- Are "thread storage duration" and "thread local storage duration" the synonyms?
- Problem with returning an array to a function in C
- A question about returning local pointer variable in function
- why does returning the local variable address throws an error but returning the local variable value don't?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Such a variable has external linkage and static storage duration. It may be initialized by a constant expression or string literal.
From the C Standard (6.2.2 Linkages of identifiers)
and (6.2.4 Storage durations of objects)
and at last (6.7.9 Initialization)