answersLogoWhite

0

it is used to know the memory size of variable of data type.

Ex: float a;

printf ("sizeof (a)= %d\n", sizeof (a));

or:

printf ("sizeof (float)= %d\n", sizeof (float));

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++


What do the two plus stand for in C plus plus?

The ++ in C++ refers to the postfix increment operator (operator++()). It's literal meaning is "the successor to C", in reference to the C language upon which the C++ language is based.


What is the memory management operator in c plus plus?

There is no memory management operator in C++ -- it is an unmanaged language. You use the C++ new operator to allocate memory, and use the C++ delete operator to release previously allocated memory.


Ternaory operator in C language?

exp1? exp2: exp3


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.


Which is dummy operator in c?

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


How do you add two numbers with out using operator in c language?

Not possible. Of course you can call a function which does the addition for you, but function-calling is also an operator in C.


What does the job of c operators consist of?

A C operator is not a job or profession but rather a coding language. C operators perform certain tasks in programming such as a "+ " operator performs addition.


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.


Explain the all operator the c language?

Visit this link http://www.cplusplus.com/doc/tutorial/operators/


What is Boolean operator in c language?

A Boolean operator is any operator that returns true or false. False is typically denoted by the integer value 0 while all non-zero values equate to true. The less-than operator (<) is an example of a Boolean operator.


What do you mean by c plus plus?

C++ is a programming language, but, in the same time, it's a valid expression. Example:A= C++is equivalent with:A= C, C= C+1It's a bit of a joke. In the programming language C, ++ is the increment operator, so C++ can be interpreted as "C, except one better."