I want to share in your knowlegde
Ok I have a lot of questions about C and I was hoping that you would help me answer them I you could would please do so as this is probably cofusing others to thanks:
1. Why does C have so many ways to input numbers, int, float, double, char, signed, unsigned, etc...
2. Do i really need to memorize all of them and there related features early in programming?
3. What is the differance between signed and unsigned? Is it really nessecery?
4. I do not understand the CHAR funtion at all could you explain it to me? or tell me what use it is i meen it doesnt seem to have a purpose.
5. Are all of the above things neccessary to know how to program?
Thanks for Helping me.
I would also like help understanding octal, hexidecimal #s:
1. What is the differance?
2. Can you help me learn how to read and convert to and from them?
3. Do I need to know them for C?
4. Any other information about these...?
5. Do you know of any websites that might help me understand Octal or hexidecimal numbers?
Please if you can thank you?
Re: I want to share in your knowlegde
>>1. Why does C have so many ways to input numbers, int, float, double, char, signed, unsigned, etc...
Because it does. It's useful to be able to store different number types.
>>2. Do i really need to memorize all of them and there related features early in programming?
Memorise, probably not. Understand and be aware, yes. With practice, you'll find you remember them all anyway without too much effort.
>>3. What is the differance between signed and unsigned? Is it really nessecery?
Difference is that signed ints use a single bit to denote the positive/negative sign. Unsigned ints don't as they're always deemed to be positive. Therefore they are free to use that extra bit in their number storage, which makes them able to store higher numbers than signed ints. Is it necessary, yes.
>>4. I do not understand the CHAR funtion at all could you explain it to me? or tell me what use it is i meen it doesnt seem to have a purpose.
There is no "CHAR function". Can you explain your question better.
>>5. Are all of the above things neccessary to know how to program?
It depends on what you're programming. You don't use all elements of the language all of the time, but you should be aware of what there is available. Memorising the complete language isn't a requirement, but a conceptual understanding of most of it is, in the long term.
>>octal, hexidecimal #s
>>1. What is the differance?
They are different ways to represent the same number.
>>2. Can you help me learn how to read and convert to and from them?
http://www.google.com/search?hl=en&l...ecimal&spell=1
Google is always good for finding these types of things.
>>3. Do I need to know them for C?
It's better to, but not essential, imo. You don't need to know the maths behind converting one to another, that's what calculators are for.
>>5. Do you know of any websites that might help me understand Octal or hexidecimal numbers?
www.google.com