C Language Interview Question and Answers
66. |
What are register variables? What are the advantages of using register variables? |
|
If a variable is declared with a register storage class,it is known as register variable. The register variable is stored in the cpu register instead of main memory. Frequently used variables are declared as register variable as it’s access time is faster. |
|
|
67. |
What is problem with Runtime type identification? |
|
The run time type identification comes at a cost of performance penalty. Compiler maintains the class. |
|
|
68. |
What is conversion operator? |
|
You can define a member function of a class, called a conversion function, that converts from the type of its class to another specified type. |
|
|
69. |
What is a pointer value and address? |
|
A pointer value is a data object that refers to a memory location, bach memory location is numbered in the memory. The number attached to a memory location is called the address of the location. |
|
|
70. |
What is a static function? |
|
A static function is a function whose scope is limited to the current source file. Scope refers to the visibility of a function or variable. If the function or variable is visible outside of the current source file, it is said to have global, or external, scope. If the function or variable is not visible outside of the current source file, it is said to have local, or static, scope. |
|
|