please explain What are the following data types are and the storage requirements of each?
-Char
-Unsigned Char
-Int
-long
-float
-double
Would be great if someone could help me out, thanks

>What are the following data types are and the storage requirements of each?
This is something you can find in any C reference. So why are you even asking the question?

char is a byte, the size is 1.
unsigned char is a byte guaranteed never to have a negative value, the size is 1.
int is a signed integer, the size depends on your compiler
long is a signed long integer, the size depends on your compiler.
float is a single precision floating-point type, the size depends on your compiler.
double is a double precision floating-point type, the size depends on your compiler.

I know that char is character, float is a decimal number, integer is a solid number with no decimal points, but long, double and unsigned char have me stumped?

Everything except float and double store integers only (of varying sizes).
The unsigned variants are restricted to positive integers (and zero) only.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.