+ 1
Can anybody tell me what's sizeof in C???
8 Respuestas
- 3
Thanks friend
+ 8
sizeof() operator in c gives the amount of memory occupied by a variable.
U can use the searchbar in Discuss section to find similar threads ...
Check this link for more info about sizeof operator : https://www.tutorialspoint.com/sizeof-operator-in-c
+ 6
See foody gyan
sizeof() operator is a flexible and versatile operator for computation of the bytes and the memory for ingesting the required values and return those values after computation. ...
Example ~
#include<stdio.h>
int main() {
int m = 80;
float n = 5.2;
printf("size of int becomes: %d\n", sizeof(m));
printf("size of float becomes %fu\n", sizeof(n));
printf("size of char becomes: %ld\n", sizeof(char));
return 0;
}
Hope this will clear✌️
+ 5
Tells you how many bytes are taken up by a variable or data type.
+ 1
foody gyan Wlcm
+ 1
Piyush[21 Dec❤️] I think you made a small mistake: there should be a space between “int” and “main”.
0
It is a keyword it is used to know how many byte that data type are use