- int main()
- {
- long int i,t;
- float *n;
- scanf("%ld",&t);
- n=(float )malloc(tsizeof(float));
- for(i=0;i<t;i++)
-
scanf("%f",n+i);
- for(i=0;i<t;i++)
-
printf("%0.0f\n",(*(n+i)-1));
- return 0;
- }
are you sure that range of input will be well within the range of float ?