by Dinesh Thakur Category: C Programming (Pratical)

This is C program that asks user to find out the size of int. there are too many data types in programming languages. All are same in using like any content acquired the memory as well as data types also acquire the memory like char, integer, float or double etc. integer data type acquire the 2 bytes. This is the program that uses to define the data type memory acquiring status. Using some methods to find out the display as result.

Problem Statement.
This is C program that ask user to find out the memory or size of integer.

  1. Declare the variables.
  2. Using memory.
  3. Display result on the screen.

Here is C source code to find out the size of int. The output of this program shown below.

            void main()
            {
               printf("%d \n", sizeof(int));
        }

C Program Write a Program to Check the Size of Int


About Dinesh Thakur

Dinesh ThakurDinesh Thakur holds an B.SC (Computer Science), MCSE, MCDBA, CCNA, CCNP, A+, SCJP certifications. Dinesh authors the hugely popular blog. Where he writes how-to guides around Computer fundamental , computer software, Computer programming, and web apps. For any type of query or something that you think is missing, please feel free to Contact us.



Search Content