By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,587 Members | 1,076 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,587 IT Pros & Developers. It's quick & easy.

Header file

P: 2
I am not understanding why a conio.h function is required in some cases and doestnt required in some other cases.
The problem I faced, where it is was is in the arrays, upto than I never used it before. can I know why it is so.
Oct 4 '17 #1
Share this Question
Share on Google+
3 Replies


weaknessforcats
Expert Mod 5K+
P: 9,197
conio.h is very old. Used by MSDOS coders 50 years ago. It is not part of C nor is it part of C++.

Nothing in conio.h has any connection to arrays.

Personally, I would not use any code dependent on this ancient header.
Oct 5 '17 #2

P: 2
Then what about string.h, for basic programs it is not required like using only strlen().
BUt if we use many functions in a program I think it is necessary write.
Oct 6 '17 #3

weaknessforcats
Expert Mod 5K+
P: 9,197
string.h is part of C.

Are you familiar with function prototypes?

C requires the code for the function to appear in the program before you call the function. If the code is in another file, or a library, then you use a function prototype as a stand-in for the actual code for the function. When you use strlen you either have to write the function prototype yourself or #include <string.h> where it is done for you.

string.h is not obsolete but conio.h is.
Oct 6 '17 #4

Post your reply

Sign in to post your reply or Sign up for a free account.