Thread: Integer Size
View Single Post
  #5 (permalink)  
Old October 21st, 2005, 12:33 AM
Alan-LB Alan-LB is offline
Authorized User
 
Join Date: Mar 2005
Posts: 58
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to Alan-LB Send a message via Yahoo to Alan-LB
Default

sizeof() is a function (not a method) and needs the brackets to hold the argument i.

If you omit the brackets it will compile but the output will not show the size of the integer.

Please post the code of a program you have written and got to run showing the correct output with sizeof used as you say.

Alan


Reply With Quote