Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8101179
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T22:55:17+00:00 2026-06-05T22:55:17+00:00

Today, I was reading about structures in Let Us C (on Goodreads ). I

  • 0

Today, I was reading about structures in Let Us C (on Goodreads). I am confused a bit about the usage of linkfloat(). Without its use, I am able to write programs on structures having float type data members.

I am programming using the ideone online compiler.

int main()
{
    struct book
    {
            char name;
            float price;
    };
    struct book b;
    scanf("%c %f",&b.name,&b.price);

    printf("%c %f",b.name,b.price);
    return 0;
}

/*linkfloat()
{
    float a=0,*b;
    b=&a; //cause emulator to be linked
    a=*b; //suppress the warning: variable not found
}*/

here is the link:
http://ideone.com/peL5q

Even without the use of linkfloat, the program compiles and outputs correctly. So what purpose does it serve?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T22:55:18+00:00Added an answer on June 5, 2026 at 10:55 pm

    linkfloat is an anachronism from the days of Turbo C when early Intel CPUs did not have hardware floating point support (1980s) and instead relied on software floating point libraries which needed to be linked into any executable that required floating point support. You do not need such anachronisms with any reasonably modern x86 CPU and C compiler (anything from the last 20 years or so). I suggest you ditch any bad/outdated text books or course material which still refers to such things (the books by Kanetkar which are still in use at some Indian colleges are particularly bad in this respect)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Today i was reading about pure function, got confused with its use: A function
I was reading today about researchers discovering that NVidia's Phys-X libraries use x87 FP
Today i was reading a SO thread about array and its memory allocation. And
I've been reading a lot today about Doctrine2 usage in ZF projects and have
I was reading today about OOCSS which says by using that approach have 2
I started reading about underscore.js today, it is a library for javascript that adds
I just began reading more about Markov Chain Generators today, and am really intrigued
While reading proggit today, I came upon this comment in a post about how
I was reading Joel On Software today and ran across this quote : Without
I am about to upload my app today and remember reading something about giving

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.