sizeof - is it a function or operator?

Answers were Sorted based on User's Feedback



sizeof - is it a function or operator?..

Answer / aboelella

sizeof is a unary operator
It is used to get the size of datatypes
It can be used with all primitives

Is This Answer Correct ?    34 Yes 1 No

sizeof - is it a function or operator?..

Answer / ruchi

size of is a unary operator

Is This Answer Correct ?    17 Yes 0 No

sizeof - is it a function or operator?..

Answer / shabeer

sizeof is a unary operator
it is used to get the size of datatype
it can be used with all primitives

Is This Answer Correct ?    17 Yes 1 No

sizeof - is it a function or operator?..

Answer / minakshi

sizeof is a operator

Is This Answer Correct ?    16 Yes 0 No

sizeof - is it a function or operator?..

Answer / chandrakant rohi

sizeof is a operator it size of variable

Is This Answer Correct ?    3 Yes 2 No

sizeof - is it a function or operator?..

Answer / naveen

sizeof is a function which return the size of variable or
an object

Is This Answer Correct ?    2 Yes 25 No

Post New Answer

More C++ General Interview Questions

If horse and bird inherit virtual public from animal, do their constructors initialize the animal constructor? If pegasus inherits from both horse and bird, how does it initialize animal’s constructor?

0 Answers  


Differentiate between an external iterator and an internal iterator?

0 Answers  


How do I run c++?

0 Answers  


what does the following statement mean? int (*a)[4]

0 Answers  


What are the various storage classes in C++?

0 Answers   Fidelity,






Name four predefined macros.

0 Answers  


Is java as fast as c++?

0 Answers  


What would happen on forgetting [], while deallocating an array through new?

0 Answers  


What are the different types of polymorphism?

3 Answers  


What will the line of code below print out and why?

0 Answers  


What is wrapper class in c++?

0 Answers  


How to declare an array of pointers to integer?

0 Answers  


Categories