FeedBack Form

Your Name :
Your Email :
Your Location :
Your Message :
   
FeedBack

C++ Language INTERVIEW QUESTION & ANSWERS

Languages
96. What is the difference between local and global variable?
  Local variables Identifiers declared as label, const, type, variables and functions in a block are said to belong to a particular block or function and these identifiers arc known as the local parameters or variables. Local variables are defined inside a function block or a compound statement.

Global variables are variables defined outside the main function block. These variables are referred by the same data type and by the same name through out the program in both the calling portion of a program and in the function block. Whenever some of the variables are treated as constants in both the main and the function block, it is advisable to use global variables.
Your Name Your Email-ID
Your Answer
 
97. What are the types of type modifiers?
 
    There are four types of type modifiers are :
  • Signed
  • Long
  • Unsigned
  • Short
Your Name Your Email-ID
Your Answer
 
98. What do you mean by pure virtual functions?
  A pure virtual member function is a member function that the base class forces derived classes to provide. Any class containing any pure virtual function cannot be used to create object of its own type.
Your Name Your Email-ID
Your Answer
 
99. What is the types of storage class specifiers?
 
    There are four storage class specifiers supported by C++. They are :
  • extern
  • static
  • register
  • auto
Your Name Your Email-ID
Your Answer
 
100. What is STL? what are the components of stl?
 
    A collection of generic classes and functions is called as Standard Template Library (STL).The stl components are
  • Containers
  • Algorithm
  • Iterators
Your Name Your Email-ID
Your Answer