Question: Problem Statement: Write a C program to find the size of data types in C language Details: In this program, we are using the sizeof()

Problem Statement:

Write a C program to find the size of data types in C language

Details:

In this program, we are using the sizeof() operator to find the size of data types.

When the sizeof is used with the primitive data types such as int, float, double

and char then it returns the amount of the memory allocated to them.

Output:

Size of char: 1 byte

Size of int: 4 bytes

Size of float: 4 bytes

Size of double: 8 bytes

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!