Lets write a C program to see how to use sizeof() method or function in C programming language. sizeof() is…