R
rngouni
hai all,
Can any one tell how and where the concept of signed char is
implemented.
Can any one tell how and where the concept of signed char is
implemented.
hai all,
Can any one tell how and where the concept of signed char is
implemented.
i mean where should i use signed char
please elaborate ur sugession
please elaborate ur sugession
The other solution is the bitfield. Most variables are held as members ofRichard Heathfield said:In "normal" C usage, they are generally unnecessary. If you need to store
integer values, use int or long int. If you need to store character data,
use plain old char. If you need to store arbitrary byte values, use
unsigned char.
Richard said:signed char is guaranteed to be able to represent integer values in the
range -127 to +127. If that's all you need, and if you're desperately short
of space, and if ints or short ints are so huge that you simply can't
allocate enough of them for your needs, then you might want to consider
using signed char.
In "normal" C usage, they are generally unnecessary. If you need to store
integer values, use int or long int. If you need to store character data,
use plain old char. If you need to store arbitrary byte values, use
unsigned char.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.