answersLogoWhite

0

The sizeof() operator returns the number of bytes allocated to the operand.

User Avatar

Wiki User

14y ago

What else can I help you with?

Related Questions

What is the operator that cannot be overloaded in c plus plus and java?

conditional operator , size of operator , membership operator and scope resulation operator can not be overload in c++


Size of operator?

The sizeof() operator returns the number of bytes required to represent its argument.


How can I get the size of an array in C?

To get the size of an array in C, you can use the sizeof() operator. This operator returns the number of bytes occupied by the array, so to get the number of elements in the array, you can divide the total size by the size of one element.


How do you find size of any object in java OR is there any operator or fun.. equivalent size of in c plus plus?

No, there is no such operator or function in Java that can tell you the amount of memory an object uses.


Which is dummy operator in c?

unary + is the only dummy operator in c,...


What is the return value when new operator is not able to allocate memory in c?

There is no operator new in C.In C++11, there are three versions of operator new, all of which can be overridden. Default behaviour is as follows:(1) throwing allocationvoid* operator new (std::size_t size);If an allocation of the given size cannot be met, an exception will be thrown. There is no return value after an exception is thrown.(2) nothrow allocationvoid* operator new (std::size_t size, const std::nothrow_t& nothrow_value) noexcept;If an allocation of the given size cannot be met, nullptr is returned.(3) placementvoid* operator new (std::size_t size, void* ptr) noexcept;Always returns ptr. You use this version when memory has already been allocated and you are merely providing placement for an object within that allocation.


What is the use of 'size of' in c programming?

The sizeof operator is used to determine the length of its operand (in bytes). The operand must be a type or an object of a type (a variable). The operator is a constant expression and therefore executes at compile time. As such there is no runtime overhead in repeated use of the sizeof operator.


What are different types of operators?

The different types of operators are as follows: *Arithmatic operator *Relational operator *Logical operator *Assignment operator *Increment/Decrement operator *Conditional operator *Bitwise operator *Special operator


How size-of variable is used in c?

The Sizeof () operator only works at compile time and doesn't evaluate anything at run time.


Which operator works like sizeof operator in Java?

Java does not have the sizeOf() operator or any operator that gives an equivalent result.


Is a water operator or an water operator which is correct?

A water operator is grammatically correct.


What is operator function?

An operator function implements a particular operator symbol. The database server provides special SQL-invoked functions, called operator functions, that implement operators. An operator function processes one to three arguments and returns a value. When an SQL statement contains an operator, the database server automatically invokes the associated operator function. The association between an operator and an operator function is called operator binding. You can overload an operator function to provide the operator for a UDT. The SQL user can then use the operator with the UDT as well as with the built-in data types. When an SQL statement contains an operator, the database server automatically invokes the associated operator function.