It gives you the size of the datatype/variable. For example, it can be used to get the length of the array:
int[] arr = {1, 2, 3, 4, 5};
printf("%d", sizeof(arr) / sizeof(int));
14th Jul 2019, 5:54 AM
Airree
0
Tq
14th Jul 2019, 6:00 AM
Mohit Goud Vicky
Vous avez souvent des questions comme celle-ci ?
Apprenez de maniĂšre plus efficace, gratuitement :