Topic : C-Language Documentation Author : John Kormylo Version : C.HYP 1.0 Subject : Documentation/C-Language Nodes : 233 Index Size : 6362 HCP-Version : 3 Compiled on : Atari @charset : atarist @lang : en @default : @help : Help @options : +g -i -s +x +z -t4 @width : 75 View Ref-File[ Unary Operators: sizeof ] Syntax: sizeof( <type> ) sizeof( <name> ) sizeof <name> where <type> is a data type and <name> is the name of a variable, structure, union, or array. It returns the size of the operand in bytes as a long word. While sizeof looks like a function, it is actually a unary operator and will be pre-computed by the compiler along with any other constant expressions. sizeof(double) depends on whether the -8 option is used. (See Compiler Options). Note: To determine the number of elements in an array, use sizeof(array_name) / sizeof(array_name[0]);