[LCP]puzzling

Kurian Abraham Kurian Abraham-A18108 kurian.abraham at motorola.com
Fri Feb 28 15:59:01 UTC 2003


hi

i have a question.....
int main()
{
  long       a = 13;
  long       b = 197;
  long       c ;

  c = (b-a)*16.66;
  printf("\nAmazing = %ld",(b - a)*(16.66));
  printf("\nC is %ld\n",c);
  return 0;
}

pls run this program....and tell me why the answers r different?

thanx & regds
kurian



More information about the linuxCprogramming mailing list