by Dinesh Thakur

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()

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

C Program Write a Program with SizeOf with Struct