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
AleksAgata [21]
3 years ago
9

The scope of a variable declared inside of a function is:

Computers and Technology
1 answer:
Feliz [49]3 years ago
7 0

Answer:

The correct answer for the given question is option(a) i.e Local - within that function .

Explanation:

The variable which is declared inside any function are called as local variable The scope and lifetime of local variable is inside that block or function only.

They cannot access outside the function.

Following are the example of local variable

#include <stdio.h> // header file

void fun(); // function prototype

int main()// main function

{

fun(); //calling function

print("%d",t); // it gives error because t is local variable cannot access in main function

return 0;

}

void fun()

{

int t=9;// local variable

printf("t is local variable which value is:");

printf("%d",t);

}

As we seen that t cannot access outside the function .So correct answer is option(a)

You might be interested in
What does a mother board in a computer do?
IRINA_888 [86]

The motherboard is the central component of a computer. Without it, the computer would not work. The mother board is sometimes called "the heart of the computer" because it allows thinks to function properly.

The motherboard of the computer is the part that holds the system memory and audio. It's a printed circuit board.

4 0
3 years ago
What is a required device(s) used to connect to an ISP Network?
Whitepunk [10]
A .switch isp connect network
8 0
3 years ago
Read 2 more answers
What is the simplest way to permanently get rid of an unwanted file? A. Cancel the file. B. Go to the Start menu and then delete
Morgarella [4.7K]
Go to the Start menu and then delete the file <span>is the simplest way to permanently get rid of an unwanted file</span>
5 0
4 years ago
This morning when Paul turned on his computer at work, it would not boot. Instead, Paul reported that he heard a loud clicking n
IRISSAK [1]

Answer:

The problem with Paul's computer is that the magnetic hard drive failed.

Explanation:

A magnetic hard drive or hard disk is a non-volatile storage device, which is used to store different information on a computer.

The magnetic disk is made up of numerous magnetic plates, these plates are divided into sectors and tracks. A spindle is present in the middle to rotate the combined plates or the whole unit.

When there is a clicking noise coming from the magnetic disk, it could mean that one of the plates is damaged or if the power to the computer is inconsistent. This can greatly affect the performance of your computer.

3 0
4 years ago
How do you make a photo the background on microsoft powerpoint?
Anna35 [415]
Well it is a very simple process all you do is open adobe photoshop and then put your picture in there then you go to your power point and go to file then new go to custom background got to photoshop chance the dimensions to your liking and boom done 
4 0
3 years ago
Other questions:
  • List and describe the three types of cloud models described by Microsoft.
    9·1 answer
  • Do opportunity costs only occur when making spending decisions
    5·1 answer
  • Give two reasons why it is important to upgrade your browser when a new version becomes available.
    8·1 answer
  • You need a collection to represent secret agents. Every agent has a unique codename that identifies them, and an Agent object th
    14·1 answer
  • How does computer store binary digits?​
    11·1 answer
  • Choose the term that completes the sentence.
    14·2 answers
  • IT professionals ensure servers connected to the network operate properly. (2 points) True False
    6·1 answer
  • What is the difference between information poor and information rich<br>​
    13·1 answer
  • Choose all items that represent features of the job application process.
    5·2 answers
  • Select the correct term to complete the sentence.
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!