What is the difference between "stdio" and "stdlib"?
Author | Message |
---|---|
Altcoiner | # Posted yesterday |
![]() |
Hello everyone ^^ |
Ads | |
Phoenix | # Posted yesterday |
![]() |
I'd rather you add #include <stdio.h> As for your question, STDIO is for input and output, so essentially it's printf and scanf. You can read the documentation for more info. As for STDLIB it's more complicated. I don't know why J. added it as compulsory, as you can absolutely run a beginner C program without it. It deals mostly with memory allocation: malloc, free, exit, etc, which is all stuff you only need starting part III of the course. |
Phantom | # Posted two hours ago |
![]() |
He literally answers the question in the C tutorial. Right in the first chapter FFS. If you really want to know everything — stdio stands for "standard input/output" and lets you display text (among other things), while stdlib deals more with memory management and handy math functions. |
Clara | # Posted two hours ago |
![]() |
Be nice to noobs yall |
Phoenix | # Posted one hour ago |
![]() |
Doing "pure math or something" without handling memory...? Wow. That's hardcore. |
Clara | # Posted one hour ago |
![]() |
LOL fingers faster than my brain this morning. I meant to say a purely calculatory program could run without |
Valter | # Posted 7 minutes ago |
![]() |
Hate to do the "ackshually" meme. int main() {And: int main() {Don't see why either couldn't work in a standard environment. |
Post a reply
Please be kind and courteous in your replies. Don't roast others for no reason.