Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Chris Ward
12,129 PointsCan some explain the strange output from this program?
[Redacted]
Never mind, it was something fairly obvious...
2 Answers
Chris Ward
12,129 PointsOk, this is QUITE interesting...
Here is the output compiling from Xcode:
5.8750 = '00' '00' 'bc' '40'
1.3125 = 'c8' 'f7' 'bf' '5f'
8.7500 = 'c8' 'f7' 'bf' '5f'
6.0625 = 'ad' '05' 'd9' '93'
Program ended with exit code: 0
Chris Ward
12,129 PointsAnd, NOW, here is the output I get from compiling with gcc 4.8.4 on Ubuntu 14.04:
5.8750 = '00' '00' 'bc' '40'
1.3125 = '00' '00' '00' '00'
8.7500 = '00' '00' '00' '00'
6.0625 = '00' '00' '00' '00'