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

What are default parameters? How are they evaluated in c++ function?

0 Answers  


What is difference between initialization and assignment?

12 Answers   HCL, HP, Infosys,


Explain linked list using c++ with an example?

0 Answers  


What are raw sockets, where they are efficient?

2 Answers   Symphony,


Tell me what are static member functions?

0 Answers  






Differentiate between an array and a list?

0 Answers  


Is it possible to provide default values while overloading a binary operator?

0 Answers  


Do you know what are static and dynamic type checking?

0 Answers  


Difference between a homogeneous and a heterogeneous container

0 Answers  


Does there exist any way to make the command line arguments available to other functions without passing them as arguments to the function?

0 Answers  


Which format specifier is used for printing a pointer value?

0 Answers  


What is std :: flush?

0 Answers  


Categories