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

How do you generate a random number in c++?

0 Answers  


Why ctype h is used in c++?

0 Answers  


Discussion on error handling of C++ .

0 Answers  


When is dynamic checking necessary?

0 Answers  


Define token in c++.

0 Answers  






What is stack unwinding?

0 Answers  


what is the difference between overloading & overriding? give example.

0 Answers  


Differences between private, protected and public and give examples.

0 Answers  


Define a constructor?

0 Answers  


Does c++ vector allocate memory?

0 Answers  


If a function doesn’t return a value, how do you declare the function?

0 Answers  


What is Destructor in C++?

0 Answers  


Categories