Anonymous

Write A Simple Program To Find The Size Of Different Basic Data Types In C?

1

1 Answers

Ray Dart Profile
Ray Dart answered
This does it for integer values - you can use the same technique for shorts, longs and floats.

#include <stdio.h>
int main(int argc, char* argv, char* envp)
{
/* set two values */
  int a = 20;
  int b = 10;

  if ( a > b )
  {
  printf(" a is bigger than bn");
  }
  else
  {
  printf("b is bigger than an");
  }
return 0;
}

Answer Question

Anonymous