Frequently Asked C Language Interview Question & Answers

How can you find the exact size of a data type in C?

One can determine the exact size of a data type by using the sizeof operator. The storage size of the data type is obtained in bytes by using the syntax: sizeof(data_type).