Jump to content
xisto Community
Sign in to follow this  
k-games

The Difference In Variables?

Recommended Posts

Integer variable meaning positive whole numbers and negative whole number, including zero.Character variable meaning any key that can be assigned other than an integer or a special character, such as *, &, etc.

Notice from BuffaloHELP:
Your topic title and description must be specific and taken seriously. Editing.

Share this post


Link to post
Share on other sites

character variables store values between -128 and 127 for signed and 0 and 255 for unsigned. they take up one byte of memory and are most usually used to store Alphanumeric characters, i.e. 'a' 'b' '$' '/'.

 

integers usually use between 16 and 32 bits of memory and can therefore store 2^16 or 2^32 different numbers (works out to be up to 4294967296).

 

It's also important to note that Mathematical Operations (+x-/) should not be used on character variables. If you want to manipulate whole numbers, then use an integer.

Share this post


Link to post
Share on other sites

Hi y have a cuestion

 

what is the diference or INT.VAR AND CHAR.VAR

thanks :)

222931[/snapback]


in a very simple way .. we have:

 

char = a,b,c ,d, ... any character (you can put a number here, but if you want print it on the screen ... the compiler will print the ascii code).

 

int = integer numbers : 0,1,2,3 ... 64000

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.