N
new to c
Today I install new lcc-win32 version 3.8. Compilation date: Jul 13 2008 00:25:11
I write this code
#include <stdio.h>
int main (void)
{
int i = sizeof(signed short);
printf("%d\n", i);
i = sizeof(short signed);
printf("%d\n", i);
return 0;
}
He warn
lc -A -A -ansic -O -c test2.c -o test2.obj
Warning test2.c: 8 no type specified. Defaulting to int
0 errors, 1 warning
lc test2.obj -o test2.exe
Code print
4
2
Is signed short better or is short signed better?
I write this code
#include <stdio.h>
int main (void)
{
int i = sizeof(signed short);
printf("%d\n", i);
i = sizeof(short signed);
printf("%d\n", i);
return 0;
}
He warn
lc -A -A -ansic -O -c test2.c -o test2.obj
Warning test2.c: 8 no type specified. Defaulting to int
0 errors, 1 warning
lc test2.obj -o test2.exe
Code print
4
2
Is signed short better or is short signed better?