Hi I have tried that change but it's not working.
Again the same error of 'floating points not linked'
User Profile
Collapse
-
Can't we access float variables in a C structure directly?
Hi I'm prasad.
I am new to structures in C.
I declared a structure as follows.
But it is giving a run-time error that
"scanf: floating point formats not matched
Abnormal program termination" at the line indicated.
Some of my friends told me that we can't access floating point variables in structures directly. We need the help of certain functions. Is it true? If so how to access them?
...
No activity results to display
Show More
Leave a comment: