sizeof operator in C - GeeksforGeeks sizeof () operator is a very useful tool that helps programmers understand how much memory a variable or data type occupies in the computer's memory It is a compile-time unary operator, which means the compiler calculates the size before the program runs