![]() ![]() The result is an unsigned integral constant the particular type is implementation-defined. The operator may not be applied to an operand of function type, or of incomplete type, or to a bit-field. When applied to a structure or union, the result is the number of bytes in the object, including any padding required to make the object tile an array: the size of an array of n elements is n times the size of one element. When sizeof is applied to a char, the result is 1 when applied to an array, the result is the total number of bytes in the array. The operand is either an expression, which is not eva luated, or a parenthesized type name. ![]() The sizeof operator yields the number of bytes required to store an object of the type of its operand. The operand of the ! operator must have arithmetic type or be a pointer, and the result is 1 if the value of its operand compares equal to 0, and 0 otherwise. ![]() The type of the result is the type of the promoted operand. If the operand is signed, the result is computed by converting the promoted operand to the corresponding unsigned type, applying ~, and converting back to the signed type. If the operand is unsigned, the result is computed by subtracting the value from the largest value of the promoted type. The operand of the ~ operator must have integral type, and the result is the one's complement of its operand.
0 Comments
Leave a Reply. |