answersLogoWhite

0

What is a global declaration?

Updated: 10/25/2022
User Avatar

Wiki User

15y ago

Best Answer

A global declaration of a function or variable is a declaration that is at the global scope of the program, not inside another function. This means that the name will be visible within all functions in the program.

User Avatar

Wiki User

15y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is a global declaration?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Which declaration was adopted by the BRIC countries recently to promote global food security?

Delhi declaration


Where is the global declaration section of a c plus plus program?

Anything declared outside of a function is global.


Why java do not support global variable declaration?

in order to acheive a inheritance and data encapsulation property global variables are not declared in java.


Which was not a demand of the Global Exchange outlined in their Declaration for Global Democracy?

You need to provide choices for this question to make sense; it is unanswerable as written.


Why does Jefferson write the Declaration of Independence in such broad global terms?

just cuz


What describes the impact of the universal declaration of human rights?

It has helped the United Nations maintain global peace.


How do you create a global variable in a program?

1.In computer programming, a global variable is a variable that is accessiblein every scope.2.There are some variables that are used in more than one function.suchvariables are called global variables.3.Usually,they are declared in global declaration section that is outsideof all functions.4.In this section,we can also declare all user-defined functions.DECLARATION:int global =5;


What is global objects?

Global objects are objects made in programming that can be accessed anywhere in the program for Example in c++ #include<fstream.h> struct test { int rno; char name; }object1; //Global Object Declaration void main() { object.rno=26; //Can be accessed } object.rno=389; //Can be accessed


What even touched off the first Declaration of Independence of war in World War 2?

What country's declaration of independence are you referring to? A declaration of independence is different from a declaration of war. The American Declaration of Independence stated that the American colonies were breaking off ties with the British Empire and were forming their own government. This led to war but was not a declaration of war. As for the event that sparked WWII: Simple answer- Germany invading Poland More complicated answer- Practically all of European history from the mid-1800s up until 1939, with WWI and global economic collapse as primary stage-setters.


To what extent is the audience of the declaration intended to be the king and people of great Britain?

Describe the global poverty trends in hindi


Was the Declaration of Independence in the declaration hall?

Was the declaration of Independence in declaration hall.....declaration hall doesnt exist. Its independence hall you are thinking of. And yes it was created and signed there.


Is it true global variable may have several declaration but only one definition?

Yes, indeed it is. In all the declarations, you need to use the keyword "extern". Rgds, Karthick S.