S
sergio.borghese
Hello,
Why this code compile without any warning?
I compile it on gcc 3.3.4 with the following command:
gcc -Wall -pedantic -ansi test.c
#include <stdlib.h>
#include <stdio.h>
int pippo(inx)
{
return inx/2;
}
int main(void)
{
int i = 6;
char c = 12;
printf("%d", pippo(i));
printf("%d", pippo(c));
return 0;
}
Thank to all.
Sergio
Why this code compile without any warning?
I compile it on gcc 3.3.4 with the following command:
gcc -Wall -pedantic -ansi test.c
#include <stdlib.h>
#include <stdio.h>
int pippo(inx)
{
return inx/2;
}
int main(void)
{
int i = 6;
char c = 12;
printf("%d", pippo(i));
printf("%d", pippo(c));
return 0;
}
Thank to all.
Sergio