+ 1

Can anybody tell me what's sizeof in C???

4th Dec 2020, 5:11 AM
foody gyan
foody gyan - avatar
8 Respuestas
- 3
Thanks friend
4th Dec 2020, 5:26 AM
foody gyan
foody gyan - avatar
+ 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
4th Dec 2020, 5:25 AM
Alphin K Sajan
Alphin K Sajan - avatar
+ 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✌️
4th Dec 2020, 6:20 AM
Piyush
Piyush - avatar
+ 5
Tells you how many bytes are taken up by a variable or data type.
4th Dec 2020, 11:39 AM
Sonic
Sonic - avatar
+ 1
4th Dec 2020, 5:28 AM
Alphin K Sajan
Alphin K Sajan - avatar
+ 1
Piyush[21 Dec❤️] I think you made a small mistake: there should be a space between “int” and “main”.
4th Dec 2020, 6:31 PM
Aria
Aria - avatar
0
It is a keyword it is used to know how many byte that data type are use
5th Dec 2020, 12:19 PM
Mohammad Aman
Mohammad Aman - avatar