how to make link betwenn flaoting point to printf statement?

V

venkatesh

hai to everybodey,
suppose i am using float variable in
structure,when i am manupulating them it will not shows the linkage
error? but when i am using scanf to read particular variable it shows
run time error?
how to make explicitly link betwen floating point
library and to printf statement?



thanks in advance
 
U

usr.root

venkatesh said:
hai to everybodey,
suppose i am using float variable in
structure,when i am manupulating them it will not shows the linkage
error? but when i am using scanf to read particular variable it shows
run time error?
how to make explicitly link betwen floating point
library and to printf statement?



thanks in advance

you'd better post your code here,so we can found what wrong with that.
 
J

jacob navia

venkatesh a écrit :
my code is
struct add
{
float x;
}y;
main()
{
scanf("%f",&y.x);

This means that your compiler left
the floating point package out, and at runtime it can't do
a floating point scan.

Upu should either:
1) Instruct your compiler to link the floating point package.
2) Get a better compiler.
 
J

Jordan Abel

please tell how to make exiplicit includetion for flaoting point

for that you'll need to look up your platform documentation - the only
advice given in the faq, IIRC, is for unix platforms, which do not
require the math library for %f formats.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,434
Messages
2,571,689
Members
48,796
Latest member
Greg L.

Latest Threads

Top