View unanswered posts | View active topics It is currently Wed Jun 19, 2013 5:06 am






Reply to topic  [ 2 posts ] 
Size of ints? 
Author Message
Senior Roboticist
User avatar

Joined: Wed Sep 28, 2011 10:13 pm
Posts: 528
Location: Totally not spying on Hassenplug to see what he has for the Brickworld Chicago 2013 sumo contest.
Post Size of ints?
What is the size of ints in RobotC? 2 bytes? 4 bytes?

_________________
A.K.A. inxt-generation
Self-proclaimed genius, and future world dominator.
My Brickshelf Folder
"Don't they teach recreational mathematics anymore?" - The Tenth Doctor
Bow down to Nikola Tesla, King of the Geek Gods.


Sun Sep 02, 2012 11:04 am
Profile WWW
Moderator
Moderator
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 2906
Location: Rotterdam, The Netherlands
Post Re: Size of ints?
int is 2 bytes
short is 2 bytes (it's an int)
long is 4 bytes
float is 4 bytes

You can test this using the sizeof() operator to check the size of things :)

- Xander

_________________
| Some people, when confronted with a problem, think, "I know, I'll use threads,"
| and then two they hav erpoblesms. (@nedbat)

| My Blog: I'd Rather Be Building Robots
| ROBOTC 3rd Party Driver Suite: [Project Page]


Sun Sep 02, 2012 11:54 am
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  



Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.