Discussion :: Floating Point Issues - General Questions (Q.No.5)
|Vinay Airan said: (Jul 20, 2010)|
While i compile this code there is an error like..
In function `main':
undefined reference to `log'
|Kumar said: (Jul 21, 2010)|
|Since C is a compiler dependent language, it may give different outputs at different platforms. Here the Turbo-C Compiler (Windows) output has been given.
Please try the above programs in Windows (Turbo-C Compiler) and Linux (GCC Compiler), you will understand the difference better.
|Well Wisher said: (Feb 10, 2011)|
|Kumar is correct.|
|Varun said: (Apr 4, 2011)|
|What should be added here (in this case) to make output correct.|
|Devendra said: (Aug 20, 2011)|
|If we use stdio.h,ans. is -.000901 and using math.h ans is -.001263
Why is it different?
|Hajmaldeen said: (Dec 20, 2011)|
|How to run this program to unix?|
|Pratap Singh said: (Aug 16, 2012)|
|unsigned int i=65535;
-1 //// Why the output of j=-1 ....Please explain this
unsigned int i=1+j;
65535 //// Wht the output of i=65535
|Satti said: (Oct 12, 2012)|
|Range of signed integer is -32768 to 32767
but in unsigned integer case range is 65535
thats why processor prints -1.
in ur second quetn j=-2
but i=1+j so i=-1; so the output prints 65535
|Deepa said: (Oct 7, 2014)|
|What are the different b/w stdio, conio, stdlib? could any one?|
|Suyoj said: (Nov 5, 2014)|
|What is the difference between getch and getche ?|
|Mallikarjun said: (Jan 30, 2015)|
Output? And in this program what is 2.1%f?
Please explain who know about this?
|Muhammed Shafeek Kp said: (Sep 26, 2016)|
What is the output of this program?
Can I run this program by using #include<conio.h>?
|Rajat Bhise said: (Jan 27, 2019)|
c=-32769 this type of output is in book
My output is;
The '-' minus sign is not find how? Please explain this.
Post your comments here:
Email : (optional)
» Your comments will be displayed only after manual approval.