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 5952759
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T17:43:37+00:00 2026-05-22T17:43:37+00:00

Why is that there is no Hashtable support as part of Standard C Library?

  • 0

Why is that there is no Hashtable support as part of Standard C Library? Is there any specific reason for this?

  • 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-22T17:43:38+00:00Added an answer on May 22, 2026 at 5:43 pm

    There is no hashtable in the standard C library because either:

    • no-one has submitted a proposal to the working group; or
    • the working group has deemed it unnecessary.

    That’s the way ISO works. Proposals are put forward and accepted or rejected.

    You have to be careful what you add to the standard library since you have two conflicting groups. As a user, you might want every data structure under the sun to be added to the standard to make the language more useful.

    But, as a language implementor (as an aside, these are probably the people that tend to make up most of the various working groups so their view is likely to have more impact), you don’t really want the hassle of having to implement stuff that may not be used by everyone. All the stuff that was there when C89 appeared was to do with the fact that the primary purpose was to codify existing practice rather than introduce new practices. All iterations of the standards since then have been a little freer in what they can do but backwards compatibility is still an important issue.

    Myself, I also have conflicts. I’d love to have all the features of the Java, C++ or Python libraries at my disposal in C. Of course, that would make it so much harder to learn everything for newcomers and, as one commenter stated, probably make it so any code monkey can pump out useful code, reducing my value in the process 🙂

    And I pretty much have all the data structures I’ll ever need, from my long and (mostly) illustrious career. You’re not limited to the standard library for this sort of stuff. There are plenty of third-party tools you can get to do the job and (like me) you can also roll your own.

    If you want to know why certain decisions were made in each iteration, ISO (and ANSI originally, before ISO took over) usually publish rationale documents. The C89 one from ANSI can be found here. It contains this little beauty in the scope:

    This Rationale focuses primarily on additions, clarifications, and changes made to the language as described in the Base Documents. It is not a rationale for the C language as a whole: the Committee was charged with codifying an existing language, not designing a new one. No attempt is made in this Rationale to defend the pre-existing syntax of the language, such as the syntax of declarations or the binding of operators.

    I especially enjoy the admission that they’re not responsible for any unholy mess that may have predated their attempts to standardise.

    But, perhaps the real answer to your question lies in this bit, one of the guiding principles:


    Keep the spirit of C. The Committee kept as a major goal to preserve the traditional spirit of C. There are many facets of the spirit of C, but the essence is a community sentiment of the underlying principles upon which the C language is based. Some of the facets of the spirit of C can be summarized in phrases like:

    • Trust the programmer.
    • Don’t prevent the programmer from doing what needs to be done.
    • Keep the language small and simple.
    • Provide only one way to do an operation.
    • Make it fast, even if it is not guaranteed to be portable.

    That third one is probably the main reason why the library wasn’t massively expanded with the initial standardisation effort – that, and the fact that such an expansion from a committee would probably have resulted in ANSI C being labeled C2038 rather than C89.

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

Sidebar

Related Questions

Are there any implementations of a static size hashtable that limits the entries to
Is there any reason that I would be missing the java.util.HashMap package? I have
Is there any special reason for having the class names java.util.Hashtable with a small
Are there any available implementations of a Hashtable that provide thread safety with minimal
I am sure that my in my hashtable, there is no duplicated value and
Assume that there's no problem with my header file and some included library. I'm
I know that there are some threads have a similar issue with this thread.
Request.Form[key] has a hashtable-like interface, but I doubt that's how it works. Is there
Wondering if this is possible. We have an 3rd Party library that contains identification
In terms of thread-safety, is there any difference between HashTable and Dictionary? I don't

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.