answersLogoWhite

0

It's actually not true. In order to make a good program which can work with big arrays you have to use dynamic arrays because you can cleam memory used by dymanic arrays any time. For static arrays is not true, memery which was reserved for static arrays will be available for other applications only when you finish working with your application (which is working with static arrays).

User Avatar

Wiki User

17y ago

What else can I help you with?

Continue Learning about Engineering

What is the meaning of waste storage?

Waste storage refers to the process of temporarily holding waste materials in designated facilities or containers before they are treated, recycled, or disposed of. This practice is essential for managing various types of waste—such as hazardous, industrial, or municipal—ensuring that they do not pose environmental or health risks. Effective waste storage involves proper containment, labeling, and monitoring to prevent leaks, spills, or contamination. Ultimately, it plays a crucial role in waste management and environmental protection.


How is waste material stored?

Waste material is typically stored in designated containers or facilities designed to handle specific types of waste, such as hazardous, recyclable, or organic materials. These storage solutions may include bins, drums, or silos, depending on the waste type and volume. Proper labeling, containment measures, and environmental controls are essential to prevent contamination and ensure safety. Additionally, waste is often monitored and managed according to regulatory guidelines to minimize environmental impact.


Do nuclear power plants have nuclear waste?

Yes, and a lot of it too! There is no permanent storage so they put the casks in a pool of boric acid so the waste can cool down. A problem is that the pools are becoming overcrowded and people need to fine a permanent storage instead of a temporary one..They found a place in Yucca Mountain a while back ago and i dont know what has happened since but it was supposed to be 1500 feet underground (personally i think thats not enough). A lot of questions have come up though. One of them being if the waste can be shot into space. I think we've messed up Earth enough so why mess up space?


What are examples of reusable waste?

Examples of reusable waste include glass jars and containers, plastic bottles, cardboard boxes, and old electronics. These items can be repurposed for storage, crafts, or as materials for new products. Additionally, textiles like old clothing can be transformed into cleaning rags or donated for reuse. Overall, many everyday items can find a second life through creative reuse.


How do you write a program for counting and displaying occurrence of a number in an array?

Your first step is accepting input, which is done using the scanf() function:scanf("%d", &number);This means that you want scanf() to accept input, convert the input to a number, and store it in the memory at the address of number.Use a for() loop, counting from 0 to 9, and an array of integers to hold the numbers. Then simply scanf("%d", &intarray[counter]);The next step is a little tricky, but not very if you plan it out in advance.Each integer can contain 256, 65,536 or 4,294,967,296 different numbers. Creating an array to hold the count of each of those numbers is a waste of RAM.Instead, you'll want an "associative" array as follows:int numcount[MAXNUM][2];MAXNUM is 10, or the number of integers in the array you're checking. The second dimension, 2, consists of the number and its count.Obviously, you'll want a way to keep track of how many integers you've stored in numcount. An int called numcountnuminitialized to 0 would be the fastest way.Use a for() loop to iterate through the integers. If the integer does not exist in numcount, then set numcount[numcountnum][0] to the integer, set numcount[numcountnum][1] to 1, and increment numcountnum. Otherwise, if the integer exists, increase numcount[the integer index][1].Once the for() loop is finished, display the results. The only thing you have left to figure out is the function that searches the numcount array for an integer, and returns its index (or -1 if it's not found).

Related Questions

Why must resources be allocated?

Resources must be allocated to ensure efficient and effective use of limited assets, maximizing productivity and achieving strategic goals. Proper allocation helps prioritize needs, balances competing demands, and minimizes waste, ensuring that resources are directed toward the most impactful projects or initiatives. Additionally, it facilitates planning and decision-making, allowing organizations to respond dynamically to changing circumstances and optimize overall performance.


How do you draw an array to solve a problem?

The answer will depend on what the problem is: some can be solved using an array but for others, arrays are a complete waste of time.


What storage structures for water food and waste?

taproot


What are storage tanks for food water and waste?

vacuole


What cell Are temporary storage compartments that sometimes store waste?

Vacuoles are temporary storage compartments that sometimes store waste.


What is the important of waste collection and storage?

Waste collection and storage are crucial for public health and environmental protection. Proper collection prevents the accumulation of waste, which can lead to pollution, attract pests, and pose health risks to communities. Effective storage practices minimize contamination and facilitate recycling and waste management processes. Overall, efficient waste management contributes to sustainable development and enhances the quality of life.


What has the author J E Mendel written?

J. E Mendel has written: 'The storage and disposal of radioactive waste as glass in canisters' -- subject(s): Glass waste, Radioactive wastes, Nuclear facilities, Storage, Waste disposal


What is the name of the Defunct nuclear waste storage site in Nevada?

It is the Yucca Mountain Nuclear Waste Repository.


What country is the only country currently looking into permanent waste storage for nuclear waste?

a dumb country


The water and waste storage sacs in a cell are called?

vacuoles


What organelle can be used for storage of waste products?

The organelle that can be used for storage of waste products is called the lysosome. The lysosome also contains chemicals that break down old cell parts.


Which type of storage facility is assumed to be safe for long-term storage of nuclear waste products?

salt mines