answersLogoWhite

0


Best Answer

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

9y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What are the different methods of storing data in a program?
Write your answer...
Submit
Still have questions?
magnify glass
imp
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.


Why do you have data base?

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


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


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 is the difference between an instance data field and static data field?

Static data field - the field is set at the start of the program (if creating a program) and can not be changed, its value will be constant. Instance data field - can be manipulated by the user, so that its value can be stored: for example you have a data field storing how many hours a person can work in one day, the field will be static as there are always 24h in a day and that can not change. If you have a second data field storing how many hours a certain employee worked that field will be an instance data field as its values can differ.