0

What's the real meaning of memory allocation of different datatypes

Tell me its meaning n also tell why it is necessary in all languages

3rd May 2017, 4:23 AM
Shubham Rai
Shubham Rai - avatar
5 ответов
+ 2
ok... thanks
3rd May 2017, 5:23 AM
Shubham Rai
Shubham Rai - avatar
+ 1
We need memory to store the value of variables.Every data type will need different amount of memory to store it's value.
3rd May 2017, 4:24 AM
Nantha
Nantha - avatar
+ 1
n how much memory allocate by these different data types..like int float char
3rd May 2017, 4:26 AM
Shubham Rai
Shubham Rai - avatar
+ 1
it depends upon number of bits of operating system use INT a; float b; cout<<sizeof(a); cout<<sizeof(b); you will be knowing the memory allocated in terms of bytes for all types of variables
3rd May 2017, 4:50 AM
Nantha
Nantha - avatar