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
5 ответов
+ 2
ok... thanks
+ 1
We need memory to store the value of variables.Every data type will need different amount of memory to store it's value.
+ 1
n how much memory allocate by these different data types..like int float char
+ 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