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

  • SEARCH
  • Home
  • 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 6776281
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T16:00:32+00:00 2026-05-26T16:00:32+00:00

When i see man sqrt on Linux, I see 3 prototypes of the function

  • 0

When i see man sqrt on Linux, I see 3 prototypes of the function –

double sqrt(double x);    
float sqrtf(float x);    
long double sqrtl(long double x);

If compiler/library is written in C++, I understand it might be using function overloading.

If the compiler library that provides this is written in C, How does the compiler(gcc) implement this kind of thing, which is like function overloading which C does not support? (Or is it that some later standard of C like C99 does support something like this?)

What programming language is gcc implemented in?

  • 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-05-26T16:00:33+00:00Added an answer on May 26, 2026 at 4:00 pm

    The function names are simply chosen differently – plain sqrt for double and its friends sqrtf and sqrtl for floats and long doubles. It looks like overloading, but it isn’t, because the function names are different.

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

Sidebar

Related Questions

See title: what does it mean for a C++ function to be inline?
I see lots of examples and man pages on how to do things like
Something that I see people doing all the time is: class Man(object): def say_hi(self):
In the man page I see the following: -L LOGOPTS Toggle various defaults controlling
As you see below, product (id 100) related with Man , S and M
I see the results from the following code, but I don't understand exactly how
I was going through Linux Programmer's Manual about Alternative Signal Stack. http://www.kernel.org/doc/man-pages/online/pages/man2/sigaltstack.2.html I see
I already read the man page of the pidfile function family. But I don't
I want to understand how programs like vim or man work in a shell.
Does a good manual exist for the standard C libraries? Like man for Linux

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.