answersLogoWhite

0

Program data can be stored in the program's data segment, on the stack or on the heap. Constants, static variables and global variables are always stored in the program's data segment. Local variables are always stored on the stack. Dynamic variables are always stored on the heap.

User data is typically stored in files, but those files could exist literally anywhere, such as a local hard-disk drive, a file-server or "the cloud". However, data must be brought into working memory in order to operate upon it. Small amounts of data can be allocated within the data segment via static variables but generally you will use the heap. If the data is too large to fit into working memory all at once, use one or more temporary files on one or more local hard-disk drives and pull in what you need as and when you need it.

User Avatar

Wiki User

10y ago

What else can I help you with?

Continue Learning about Engineering

Data gathering methods?

Different ways to gather data include:SurveyTelemarketingWeb searchHistorical analysis


What are the different data access methods?

Random Access & Sequential Access


What is the importance of data sturture in a programming language?

According to Wikipedia-"In computer science, a data structure is a particular way of storing and organizing data in a computer so that it can be used efficiently.Data structures are used in almost every program or software system. Data structures provide a means to manage huge amounts of data efficiently, such as large databases and internet indexing services. Some formal design methods and programming languages emphasize data structures, rather than algorithms, as the key organizing factor in software design."


Is it true that wrapping up of data of different types into a single unit is known as encapsulation?

Not quite. Encapsulation means to combine data and the methods that work upon that data into a single unit (an object), such that access to both the data and methods is restricted in a controlled manner. Data-hiding is fundamental to encapsulation.


What do you mean by data structure and briefly explain any two data structures important for computing algorithm?

In computer science, a data structure is a particular way of storing and organizing data in a computer so that it can be used efficiently.[1][2] Different kinds of data structures are suited to different kinds of applications, and some are highly specialized to specific tasks. For example, B-trees are particularly well-suited for implementation of databases, while compiler implementations usually use hash tables to look up identifiers. Data structures are used in almost every program or software system. Specific data structures are essential ingredients of many efficient algorithms, and make possible the management of huge amounts of data, such as large databases and internet indexing services. Some formal design methods and programming languages emphasize data structures, rather than algorithms, as the key organizing factor in software design

Related Questions

Where is data stored in a database?

data is saved by storing


What are the methods in collect data?

There are five different methods in collecting data. The methods in data collect are registration, questionnaires, interviews, direct observations, and reporting.


Are database and a word-processing program the same?

No, they are very different. A database is for storing and manipulating data. A word processor allows you to type text and design documents like letters.


What are the uses of CPU?

Proccessing, mostly every program is run using it.


what are quantitative methods of gathering data?

Qualitative approaches aim to address the 'how' and 'why' of a program and tend to use unstructured methods of data collection to fully explore the topic. Quantitative approaches address the 'what' of the program. They use a systematic standardised approach and employ methods such as surveys.


What is the purpose of excel?

Excel is an electronic spreadsheet program that can be used for storing, organizing and manipulating numbers and data. It's an amazingly flexible program to find answers to logic based questions. It is a program that can compile lots of data into graphs and tables.


What is fragmentation and its significance?

Fragmentation is when a single file's data becomes distributed across a hard drive, taking longer to read it. Fragmentation generally only occurs in Microsoft's technique(s) of storing data, since Apple and Linux both use different methods.


What are the different methods in gathering data?

There are many different methods for gathering data depending upon the industry and the objective. Some of the methods include direct Interviewing, indirect or questionnaire, registration method, and experimental method.


Data gathering methods?

Different ways to gather data include:SurveyTelemarketingWeb searchHistorical analysis


Why do you have data base?

Database is used for storing data that are related. We need database in every field for storing data.


Can you give the name of two methods of storing data other than a floppy disc?

You could use a USB, or a memory card such as an SD card.


What are the different data access methods?

Random Access & Sequential Access