+ 4
Can you please tell me that what is the meaning of sizeof in c language
9 Respuestas
+ 7
It gives you the size of a variable type in terms of bytes. It is useful when you want to allocate memory through malloc or calloc. It is also a good way of learning about how much memory you use when creating different user-defined variables.
+ 2
I think sizeof() returns a value of type size_t which is pretty much an integer value.
+ 1
Thanku you !!!!!
+ 1
It's a data type seems to return something .....
+ 1
It shows how much memory required for a particular data type
0
No
0
it just return us the size of that variable
- 1
int b;
cout<<sizeof(b);
then answer is 2