by Dinesh Thakur Category: C Programming (Pratical)

The function sizeof () gives the number of bytes allocated to store the argument of the function. For example, sizeof (x) will give the numbers of bytes allocated for storing x. Similarly, sizeof (int) will give number of bytes allocated for storing an int number. The number of bytes allocated for a particular data type depends on the computer system, the operating system, and the compiler used.

void main()

          int a;
          int b;
      } TInts;
      printf("The Size of a & b is = %d \n", sizeof(TInts));

C Program Write a Program with SizeOf with Struct

About Dinesh Thakur

Dinesh ThakurDinesh Thakur holds an B.C.A, 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.