C program to find and print size and limit of all data types

Data type tells type of data that we are going to store into computer memory. For example data like numeric or text have specific data types and these data types are specified according to type of data we are dealing with. In this program, we will write source code which will print size of these data types and their maximum limit predefined in c.

Pre-requisites:

input output function, main function, macros etc.

Approach:

We will specify different format specifiers in printf statement to output correct values. Format specifier will be used as per data type. For e.g. %d format specifier will be used to print integer data. We will use predefined functions like sizeof operator and macros to produce the desired output.

Program:

Output:

Leave a Reply

%d bloggers like this: