How sizeof() operator works?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

How sizeof() operator works??

22nd Nov 2016, 5:03 AM
Sudhanshu Tiwari
Sudhanshu Tiwari - avatar
1 Answer
0
it will return the size of a datatype. so if int is 4, sizeof(int) == 4; char is 8, sizeof(char) == 8 ect. long double string hope this halps :D
23rd Feb 2017, 7:17 PM
Michael Szczepanski
Michael Szczepanski - avatar