Define new data type : Define New Type « Data Type « C / ANSI-C






Define new data type

#include <stdio.h>

typedef signed char smallint;

int main(void)
{
  smallint i;

  for( i = 0; i < 10; i++)
    printf("%d ", i);

  return 0;
}


           
       








Related examples in the same category