sizeof() operator is a unary operator used to find the size of the arrays or the size of a variable or size of structures in terms of bytes. If we use sizeof(variable), it returns the size taken by it in terms of bytes.
Syntax:
Syntax:
sizeof(variable_name);Let us the application of the sizeof operator in the following example.