C++ Interview Questions and Answers for Experienced - 3

Question: 11

List out user defined data types.

 User defined data types are –

Structure,

Union,

Class and

Enumeration

Question: 12

What is the use of sizeof in an operator?

sizeof is an operator. It returns the size (memory requirements) in terms of bytes, of the given expression or data type.

Question: 13

What is a floating- point constant?

Floating Point Constant is a signed real number. It includes integer portion, a decimal point, fractional portion and an exponent.

Question: 14

How are the operators classified based on operand requirements?

Based on operand requirements, operators are also classified as unary, binary and ternary operators.

Question: 15

List out the unary operators?

&               Address of

!                 Logical Not

*                Indirection

++             Increment

~                Bitwise

_ _             Decrement

-                Unary minus

+               Unary plus

Related Questions