/***************************************************************************
 *  Columbia University Introduction to Computer Programming in C COMS 1003
 *  Program to Print sizes of variable types
 *
 *  Copyright (C) 2005 Michael E. Locasto
 *
 *  All rights reserved.
 *
 * $Id: showsize.c,v 1.1 2005/09/18 23:09:49 locasto Exp $
 **************************************************************************/

#include <stdio.h>

/**
 * This program simply prints out the varying sizes of the
 * C primitive types.
 *
 * 
 */
int main(int argc, char* argv[])
{
   printf("sizeof(int)         = %2d\n", sizeof(int));
   printf("sizeof(char)        = %2d\n", sizeof(char));
   printf("sizeof(long)        = %2d\n", sizeof(long));
   printf("sizeof(short)       = %2d\n", sizeof(short));
   printf("sizeof(float)       = %2d\n", sizeof(float));
   printf("sizeof(double)      = %2d\n", sizeof(double));
   printf("sizeof(long double) = %2d\n", sizeof(long double));
   return 0;
}
