sizeof - is it a function or operator?
Answers were Sorted based on User's Feedback
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 |
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 |
Answer / chandrakant rohi
sizeof is a operator it size of variable
| Is This Answer Correct ? | 3 Yes | 2 No |
Answer / naveen
sizeof is a function which return the size of variable or
an object
| Is This Answer Correct ? | 2 Yes | 25 No |
How one would use switch in a program?
Write a recursive program to calculate factorial in c++.
Is c++ built on c?
What is a block in c++?
What is a smart pointer?
Why do we use pointers in c++?
Write some differences between an external iterator and an internal iterator? Describe the advantage of an external iterator.
class base { public: int fun(int) {} }; class base2 { public: int fun(float) { } }; so here qustion is both function either function overloading or over riding;
Write down the equivalent pointer expression for referring the same element a[i][j][k][l]?
What are the uses of typedef in a program?
What is ctime c++?
Difference between struct and class in terms of access modifier.