C/Data Type/Define New Type
Версия от 14:20, 25 мая 2010; (обсуждение)
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;
}
A
#include <stdio.h>
typedef signed char smallint;
int main(void)
{
smallint i;
for( i = 0; i < 10; i++)
printf("%d ", i);
return 0;
}