|
![]() |
#1 | ||
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Join Date: May 2010
Location: Brazil
Posts: 91
|
![]() Hello Japo. You are correct, C data types may have different sizes in different implementations, which can be annoying, but the ANSI standard defines a minimum range the types must represent. Take a look here:
http://www.acm.uiuc.edu/webmonkeys/b...guide/2.4.html Which was actually a good idea from the guys who created the standard, otherwise portability would be a pain. |
||
![]() ![]() |
|
![]() |
#2 | ||
![]() ![]() ![]() ![]() ![]() ![]() ![]() Join Date: Mar 2006
Location: ,
Posts: 4,613
|
![]() Thanks I didn't know there was a minimum irrespective of platform. By "the standard" I suppose you mean C89?
Anyway MM keep the questions coming, I hope you stick to learning! BTW to be real standard C you should define "int main(void)", not "int main()"
__________________
Life starts every day anew. Prospects not so good... Last edited by Japo; 27-08-2013 at 04:33 PM. |
||
![]() ![]() |
|
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
EoF Corner | Eagle of Fire | Offers | 6 | 03-02-2010 05:01 PM |
The end of the file corner | Eagle of Fire | Music, Art, Movies | 8 | 08-12-2009 12:09 AM |
Spoonman's Art Corner | Spoonman | Music, Art, Movies | 122 | 15-01-2009 09:35 PM |
Spoonman's Music Corner | Spoonman | Music, Art, Movies | 3 | 25-06-2005 05:18 PM |
|
|
||