sizeof - is it a function or operator?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the C-style character string?

600


What is constructor c++?

664


If dog is a friend of boy, is boy a friend of dog?

567


Which of the following is evaluated first: a) && b) || c) !

1799


What is the purpose of ios::basefield in the following statement?

783






What is abstraction with real time example?

617


What is difference between malloc()/free() and new/delete?

641


Why c++ is called oop?

593


What's c++ used for?

589


True or false, if you keep incrementing a variable, it will become negative a) True b) False c) It depends

1853


What is the use of endl in c++ give an example?

608


What flag means?

522


Explain the difference between class and struct in c++?

590


What are files in c++?

587


Which is the best c++ compiler?

585