What is the ram of a computer?

What is the ram memory: Memory cell in computer

Entire RAM has divided in numbers of equal parts, which are
known as memory cells. Following diagram represents the 256

Each cell can store one-byte data. Data are stored in the
binary number system. That is a character data reserves one
memory cell while floating data reserves four memory cells.

Each memory cell has unique address. Address is always in
whole number and must be in increasing order. We will discuss
how a characters, integers etc. data are in stored in the
data type chapter. Just for now assume

int a = 4;

Here variables a stores in the memory in the flowing way:

If you know memory address of first cell is 0x5000 then
what would be the memory address of next memory cell?

It will 5001 since integer data always stores at
continuous memory location and as we know memory address
always in increasing order.

C tutorial home.


dinhpq said...


Anonymous said...

here integer takes 2-bytes length, so the next address 5002.

Omkar T said...

address is 5002!
edit it immediately!

Omkar T said...

Sorry it's absolutely correct i think!
If we take array of int like this..

int[2] a;

memory allocated for 2 sequential variables.

In C, int is 2 bytes.

completely 4 cells are allocated!
2 cells - 1 variable
2 cells - another 2nd variable.

1st variable: 1st cell address is 100,
2nd cell address is 101.
2nd variable 1st cell address is 102.
2nd cell address is 103.

prashant aggarwal said...

here actually storage of int started form 0x4999
0x4999 00000000
0x5000 00000100

prashant aggarwal said...

here actually storage of int started form 0x4999
0x4999 00000000
0x5000 00000100

matheen smart vip said...
This comment has been removed by the author.
matheen smart vip said...

compile this:


int main()
int ptr=5;

return 0;

Nayan Mani Baruah said...

Hello friends its not clear to me why 00000100 is not stored in the second byte, like normally we do in binary number system 00000000 00000100 ,is there any kind of big endian or little endian concept out here....

Brandon Hudson said...

Nice and very helpful information i have got from your post. Even your whole blog is full of interesting information which is the great sign of a great blogger.

Acer - 11.6" Chromebook - 4GB Memory - 320GB Hard Drive - Iron Gray

Acer - 11.6" Chromebook - 4GB Memory - 320GB Hard Drive - Iron Gray (C710-2487)

Anonymous said...

what if the int hold 4 bytes

burra prasanth said...

My understanding is like this.
int a = 4;
means a = 0X 0004; => 00000000,00000100;
Since little endian.....Lower Byte in Lower Address and Higher Byte in Higher Address.
So if lower byte 00000100 address is 5000......higher byte 00000000 address is 5001....
is it ok?


priyanka usha said...

Excellent blog for all the people who needs information about this technology.
spanish language in chennai
spanish language classes in chennai
German Courses in Chennai
Best IELTS Coaching in Chennai
learn Japanese in Chennai
Best Spoken English Class in Chennai
Spoken English Class in Anna Nagar
spoken english course in anna nagar

Adhuntt said...

Great blog thanks for sharing Your website is the portal to your brand identity. The look and feel of every page carry a strong message. This is why your brand needs the best web design company in chennai to capture your visions and make it art.

Karuna said...

Nice blog thanks for sharing Growing your own plant comes with its own challenges and responsibilities. This is why you need a plant nursery in chennai who is ready to help you out throughout the way and guide you through the hurdles of growing a plant - Enter Karuna Nursery Gardens.

Unknown said...

Excellent blog thanks for sharing Pixies Beauty Shop is unlike any of the other cosmetic shops in Chennai. With tons of exclusive imported brands to choose from and the best value, this is the best shopping destination for your personal and salon needs.

Unknown said...

Nice article thanks for sharing While choosing your perfect ride for driving, Accord Cars comes with and the best packages for you to pick from. Self drive cars in Chennai are done the easier. Just pick out your plan from hourly, daily, weekly and even monthly plans available.

Unknown said...

Very useful blog thanks for sharing Pearls beauty lounge is the best beauty parlour in chennai. More than 30+ years experience in this field. When you come over at Pearl’s you don’t visit a just a beauty lounge, you are welcomed into an indulging experience which you’ll want to feel again and again. Our secret ingredient for your happiness is in going an extra mile to make you feel pampered.

Unknown said...

Awesome blog thankks for sharing 100% virgin Remy Hair Extension in USA, importing from India. Premium and original human hair without joints and bondings. Available in Wigs, Frontal, Wavy, Closure, Bundle, Curly, straight and customized color hairstyles Extensions.

Unknown said...

Very useful blog thanks for sharing IndPac India the German technology Packaging and sealing machines in India is the leading manufacturer and exporter of Packing Machines in India.