Data types are the type of data stored in a C program. Data types are used while defining a variable…