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

what is #include <stdio.h> and what is scanf("%5d",&a)

P: 2
please i want what is conio.h and scanf("%5d",&a)
May 24 '07 #1
Share this Question
Share on Google+
3 Replies


P: 2
high i want what is #include <conio.h> also why we use "%6d" in scanf why please tell me
May 24 '07 #2

sicarie
Expert Mod 2.5K+
P: 4,677
high i want what is #include <conio.h> also why we use "%6d" in scanf why please tell me
Conio is a non-standard library - you can google it and see what it contains, however it won't work on all systems, and might be different from system to system. I personally avoid it, but many people use it. It just depends on how portable you want your code to be.

And you can read more about scanf() here, though I believe that the 6 refers to the precision, and the %d to the data type (%d, %x, etc...).
May 24 '07 #3

100+
P: 208
high i want what is #include <conio.h> also why we use "%6d" in scanf why please tell me
From what I've read conio.h is basically an old set of functions for console input/output.

The number in the "%d" just tells you how many digits of precision.

Edit: Ahhh the moderators always beat me to it
May 24 '07 #4

Post your reply

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