PDA

View Full Version : read int size (is that true )in bytes 2 and short int bytes 2 what the difference bet



sana.pari
04-24-2011, 06:50 PM
A.A !

Dear sir !

1. I read int size (is that true )in bytes 2 and short int bytes 2 what the difference between the bytes?

2. Repected sir i canot purchase the book (Introduction to Programing)written by dithel dithel . Can u send me a soft copy of this book ?

Post Your Comments Other Students' Comments: 0

Support
04-24-2011, 06:51 PM
Dear Student,
The word "byte" is used as a unit for measurement of memory in the computers. Secondly, whever we declare some variables in our program, these belong to certain data type like int, float, char etc. Each variable declared in our program takes certain amount of memory according to its data type. For example, If we write any program and we declare some integer type variable 'sum' in our program, it will take 4 bytes in the memory. Similarly, a variable of short integer type will occupy 2 bytes in the memory.