Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   the new software prorgam (http://www.chiefdelphi.com/forums/showthread.php?t=23257)

WizardOfAz 13-01-2004 10:03

Re: the new software prorgam
 
You can use "short int", but it's equivalent to "short" alone. The default variable type in C is int, so if you leave out the word "int" you get an int anyway. It's common practice to leave out the word "int" when declaring shorts and longs, but either way is fine.

unsigned a; // an unsigned int (16 bits in C18, 32 bits in most "big" machines)
short b; // a signed short int (16 bits in C18)
short int c; // same thing
long d; // a signed 32 bit int
unsigned long int e; // unsigned 32 bit int
And so on.


All times are GMT -5. The time now is 19:00.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi