C++ Language INTERVIEW QUESTION & ANSWERS
51. |
What is a pointer? |
|
- A pointer is a variable which holds a memory address within.
- Each variable is located at a particular position in the memory which is known as Address.
- The address can be stored in a pointer.
- A program accesses the value in the address stored in the pointer by using indirection operator.
|
52. |
What is an expression? |
|
An expression is any statement which is composed of one or more operands and returns a value. It may be combination of operators, variables and constants. |
53. |
What are the types of expressions? |
|
There are three types of expressions are : - Constant Expressions
- Integral Expressions
- Logical Expressions
|
54. |
What are the types of conversion? |
|
There are two types of conversion are : - Implicit (Automatic) Conversion
- Explicit Conversion
|
55. |
What is the difference between implicit and explicit conversion? |
|
When data types are mixed in an expression, the conversion is performed automatically. This process of automatic conversion is called implicit conversion.
Explicit Expressions are user defined expressions. C++ provides type casting facility. The expression can be converted into a specific type.
|