answersLogoWhite

0

How int is stored in memory?

Updated: 12/22/2022
User Avatar

Wiki User

13y ago

Best Answer

As 4 adjacent bytes.

User Avatar

Wiki User

13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How int is stored in memory?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What are Memory locations assigned either the short or int can only store?

Memory locations are supposed to be stored in pointers.If you have to convert a pointer to integer, use data-type intptr_t from inttypes.h


Write a program to find the address of the data stored in the memory using c?

#include <stdio.h> static int statv; int main (void) { int localv; printf ("static at %p, automatic at %p\n", &statv, &localv); return 0; }


What is arry as in java?

An array is a contiguous block of memory in which to store data. For instance, an array of integers is essentially a chunk of memory with integers stored one after another. // Use [] to define an array of the given type. int[] intArray; // Instantiate intArray with enough space to hold 100 ints. intArray = new int[100]; // Store some data... int[0] = 100; int[1] = 99; int[2] = 98; ... int[99] = 1; // Retrieve some data... for(int i = 0; i < intArray.length; ++i) { System.out.println(intArray[i]); }


Where is memory stored in?

Memory is stored in the brain's grey matter.


What is memory corruption in C?

Memory corruption in C refers to situations where a program unintentionally alters the contents of memory locations that it is not supposed to access or modify. This can lead to unexpected and potentially dangerous behavior, such as crashes, data corruption, or security vulnerabilities. Memory corruption in C is often a result of issues like buffer overflows, uninitialized variables, or improperly managed memory allocations.


What shelf is seafood stored?

You store it int he fridge.


What is stored in the brain?

Memory is stored in the brain. Some things like an odd answer to a question in maths are stored in short term memory and others like your birthday are stored in long term memory.


How can you protect information stored on memory stick?

protect information stored in memory stick?


How do you protect info stored on a memory stick?

how dcan you protect information stored on memory stick


What are stored in heap memory?

Objects are stored in heap.


What is the process of allocation of memory for an integer type variable?

To dynamically allocate memory, use the following function (stdlib.h I believe): int *variable1 = malloc(sizeof(int));


Deifference between declaration and definition?

Declaring a variable or function reserves an entry in a symbol table for that function or variable (entries in a symbol table eventually become memory addresses during linkage). Defining a variable or function actually specifies the value to be stored in the memory location specified and/or the code that should be compiled. Examples: Declaration: int foo(); // Declares a function. int bar; // Declares a variable. Definition: int foo() { printf("Hello World"); } bar = 5; Declaration and definition: int bar = 5;