answersLogoWhite

0


Best Answer

Anything declared outside of a function is global.

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Where is the global declaration section of a c plus plus program?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

Parts of the program C plus plus?

parts of a programStructure of C++ programDocumentation SectionPreprocessor SectionDefinition SectionGlobal Declaration Sectionmain(){Declaration part;Executable part;}sub program section{Sub program execution part}


Is there an answer book for the A plus program?

The A Plus Program is an initiative, not a test. So no, there is no answer book.


How many main functions can a c plus plus program have?

1. In C language, you cannot compile a source-file if it has two (or more) functions with the same name. 2. You cannot link a program if it has two (or more) global (ie: non-static) functions with the same name.


In c plus plus Who tells the compiler that a specific class will be declared later in the program?

A forward declaration. However forward declarations can only be used when the class is used as a pointer or reference prior to its definition, otherwise it must be defined before it is used. class A; // forward declaration class B { A& data; // reference to class that has yet to be defined }; class A {}; // definition


What is global object in c plus plus?

A global object is any object instantiated in the global namespace. The global namespace is anonymous, so if we don't explicitly specify a namespace prior to instantiating an object, that object will be instantiated in the global namespace: int x; // global namespace n { int x; // non-global }; To refer to the non-global, we must use namespace resolution: x = 42; // assign to the global n::x = 42; // assign to the non-global

Related questions

Parts of the program C plus plus?

parts of a programStructure of C++ programDocumentation SectionPreprocessor SectionDefinition SectionGlobal Declaration Sectionmain(){Declaration part;Executable part;}sub program section{Sub program execution part}


Algorithms to the given c plus plus programs?

The question is impossible to answer. You cannot determine an algorithm from a given program if the program is not actually given in the question. Please place the program in the discussion section.


What are the differences between global variables and local variables in C plus plus?

Global variables can be seen in all blocks of your program, when local variables are visible only within the block where it's declared.


Where can you download word pad plus plus?

I don't know of a program with that specific name. Do you possibly mean Notepad++? If so, the link is in the related links section.


What is the difference between declaration and a definition in c plus plus?

A declaration is an incomplete type whereas a definition is a complete type.


How to restart c plus plus program?

Exit the program and relaunch it.


Can you program games with c plus plus?

Yes, you can program games with C++.


Is there an answer book for the A plus program?

The A Plus Program is an initiative, not a test. So no, there is no answer book.


The global positioning system is a network of satellite plus?

The global positioning system is a network of 24 satellites plus ground based receivers.


What does GPX means?

It means Global PokedeX.The entire title is Global Pokedex Plus.^^


How many main functions can a c plus plus program have?

1. In C language, you cannot compile a source-file if it has two (or more) functions with the same name. 2. You cannot link a program if it has two (or more) global (ie: non-static) functions with the same name.


In c plus plus Who tells the compiler that a specific class will be declared later in the program?

A forward declaration. However forward declarations can only be used when the class is used as a pointer or reference prior to its definition, otherwise it must be defined before it is used. class A; // forward declaration class B { A& data; // reference to class that has yet to be defined }; class A {}; // definition