Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uflorida!haven!grebyn!scotth From: scotth@grebyn.COM (Scott Hutchinson) Newsgroups: comp.sys.ibm.pc Subject: Re: Turbo-C bug Message-ID: <12056@grebyn.COM> Date: 30 May 89 22:26:58 GMT References: <2556@Portia.Stanford.EDU> Reply-To: scotth@grebyn (Scott Hutchinson) Distribution: na Organization: Grebyn Corp. & Timesharing Customers; Vienna, VA Lines: 33 In article <2556@Portia.Stanford.EDU> hobbes@Portia.Stanford.EDU (Andrew Zimmerman) writes: >The following program doesn't run when compiled under Turbo-C 2.0. >(It does compile under Turbo-C, and it runs under Zortech C.) >Does anyone know if you can explicitly tell Turbo-C 2.0 to link in >the floating formats? > I believe adding the following function will do it. void ___NeverUsed (float a, double b) { return ( a * b * 1.01) } >main() >{ > double a[3][3]; > int i; > > i = 1; > scanf("%lf",&a[i][1]); > printf("a[1][1] = %lf\n",a[1][1]); >} -- -Scott H. Hutchinson Standard Disclamers: These opinions are mine, they do not reflect on my Company at all. I can be reached at scotth@grebyn.com or grebyn!scotth