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.
 
Your Name Your Email-ID
Your Answer
67. What is problem with Runtime type identification?
  The run time type identification comes at a cost of performance penalty. Compiler maintains the class.
 
Your Name Your Email-ID
Your Answer
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.
 
Your Name Your Email-ID
Your Answer
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.
 
Your Name Your Email-ID
Your Answer
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.
 
Your Name Your Email-ID
Your Answer