this operator is used to compute the size of its operand. it returns the size of a variable or the keyword that defines a type (int, char, etc) including types defined by the typedef keyword, expressions, and pointer type variables. this operator returns a number of type size_t.
#include <stdio.h>
int main(int argc, char *argv[])
{
int integerValue = 16;
double doubleValue = 4.65;
printf("Size of int data type: %zu\n", sizeof(int));
printf("Size of double data type: %zu\n", sizeof(double));
printf("\nSize of integerValue variable: %zu\n", sizeof(integerValue));
printf("Size of doubleValue variable: %zu\n", sizeof(doubleValue));
return 0;
}