1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Mice21 [21]
3 years ago
11

The scope of a variable declared outside of any function is:

Computers and Technology
1 answer:
Marta_Voda [28]3 years ago
5 0

Answer:

a) Global

Explanation:

The scope of a variable declared outside of any function is Global.

Let us consider an example:

int g;

int  add(int a,int b){

   return a+b;

}

int  subtract(int a,int b){

   return a-b;

}

Here the variable g is defined outside any function and is accessible anywhere within the program. This is a global variable.

Variables defined within each function - a,b on the other hand have a local scope are are visible only within their respective function bodies.

You might be interested in
What are three methods of sustainable farming and describe each.
Ivan

I will mention the 3 common methods of sustainable farming.

 

<span>1.       </span> Crop rotation: Planting various crops can have a lot of advantages, including healthier soil and improved pest control. Crop rotation avoids the consequences of planting the same crops in the same soil for years in a row.

<span>2.       </span>Cover crops: Cover crops are planted mostly during off-season. They help protect and build soil health by preventing erosion and reducing weeds.

<span>3.       </span>Soil enrichment: Healthy soils are full of life and can increase yields by creating more robust crops.







8 0
3 years ago
Select the correct answer.
AveGali [126]

Answer:A

Explanation:

3 0
3 years ago
Read 2 more answers
What is the descriptor for a filter that warns or blocks you from potentially fraudulent or suspicious websites?.
algol [13]
A VPN. i believe what you’re referring to is called a vpn. it protects your data when you’re working online.
8 0
2 years ago
Desmond must enter a long string of numbers (1 4 9 2 1 6 2 0 1 7 7 6) into an old computer every two hours or the computer will
Ad libitum [116K]
Chunking is a kind of learning or memory technique in which a large sum of information is divided into chunks so that the person is able to assimilate the information easier and more efficiently. In this case, he grouped the numbers similar to years so that there are 3 pieces of information which he has to remember only instead of 12 numbers. 
8 0
3 years ago
45 points!!
pav-90 [236]

Answer:

ENQUIRE database system

Explanation:

5 0
3 years ago
Read 2 more answers
Other questions:
  • A computer professional who has access to sensitive information shares this information with a third party. Which professional c
    9·2 answers
  • Recursive Power Function Write a function that uses recursion to raise a number to a power. The function should accept two argum
    15·1 answer
  • What is the keyboard shortcut to display the merge to printer dialog box?
    5·1 answer
  • A binary gap within a positive integer N is any maximal sequence of consecutive zeros that is surrounded by ones at both ends in
    13·1 answer
  • Select the appropriate APA guidelines when typing a research paper.
    11·1 answer
  • B2B partners often connect to each other on the Internet through special __________ designed to facilitate information exchanges
    11·1 answer
  • Algorithms can be created in all the following ways EXCEPT:
    10·1 answer
  • Which type of SQL Injection allows an attacker to try to alter the SQL statement such that it always returns TRUE (authenticatio
    8·1 answer
  • PLEASE HELP. Nobody has been helping me, i need to resolve this code issue for game design
    8·1 answer
  • Print numbers 0, 1, 2, ..., userNum as shown, with each number indented by that number of spaces. For each printed line, print t
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!