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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T06:43:42+00:00 2026-05-26T06:43:42+00:00

Every program written in C that I’ve ever seen #include s <stdlib.h> , at

  • 0

Every program written in C that I’ve ever seen #includes <stdlib.h>, at least indirectly. You can’t really do much useful without it.

Why aren’t its functions just part of “standard C”?

Why should I have to #include <stdlib.h> before malloc()ing something?

  • 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-26T06:43:43+00:00Added an answer on May 26, 2026 at 6:43 am

    The C language was designed, from the start, to be used both in ordinary applications (running in a ‘hosted environment’) and OS kernels (and other specialized environments, running in a ‘freestanding environment’). In the latter, ordinary C library functions like malloc() may be unavailable.

    In order to allow the same compiler to be used for both hosted and freestanding environments, library functions are not hardcoded into the compiler, but rather are placed into header files loaded by the compiler – such as stdlib.h. OS kernels and other specialized programs do not (and cannot) include these standard headers.

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

Sidebar

Related Questions

I want to write a program that would print every combination of a set
I have a Java program that executes from Spring Qquartz every 20 seconds. Sometimes
I am working on a php program that requires javascript on every form control.
I have written a program that prints a table. I have not included the
Lets say I have a chat program that every time someone sends a message,
I have written PLSQL program that generates table having usually more than 200 columns.
I have written an echoclient and echoserver network program so that messages written on
After every new program written a lot of paper documentation remains. Apart from the
I have written a simple MSN -style program that will send and retrieve messages
In my clutter program written in c I have two Textures that overlap. One

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.