/*=============================================================================
Filename: sizeof.c
Purpose : prints out size of the basic data types
Author  : Tristan Miller -- psy@cs.toronto.edu

Study questions:
  * Run this program on several computers.  Do you get the same output?
  * On the CDC Cyber series computers, a char has 60 bits.  What is
    sizeof(char) on these machines?
  * C99 introduced a new integer type "long long".  Does your compiler
    support it?  If so, what is its size?
=============================================================================*/

#include <stdio.h>
#include <stdlib.h>

int main(void) {

  printf("sizeof(char)        = %d\n", sizeof(char));
  printf("sizeof(short)       = %d\n", sizeof(short));
  printf("sizeof(int)         = %d\n", sizeof(int));
  printf("sizeof(long)        = %d\n", sizeof(long));
  printf("sizeof(float)       = %d\n", sizeof(float));
  printf("sizeof(double)      = %d\n", sizeof(double));
  printf("sizeof(long double) = %d\n", sizeof(long double));

  return EXIT_SUCCESS;
}

