Question
Determine the output of the 'C++' Codelet.

Answers

class base
{
public :
out()
{
cout<<"base ";
}
};
class deri{
public : out()
{
cout<<"deri ";
}
};
void main()
{ deri dp[3];
base *bp = (base*)dp;
for (int i=0; i<3;i++)
(bp++)->out();
}   Your Comment






Search
Can you Answer!!
  • Q Intel's timer circuit (8253).
  • Q Under DOS, what command will you type when you want to list down the files in a directory, and at the same time pause after every screen output?
  • Q Write Notes on Biopolymers
  • Q Have you ever implemented new tsm server? what is the process?
  • Q There are no of urns &no of balls. If three balls are placed in each urn then 3 balls is left. If 4 balls are placed in each urn then 1 urn is left. What is the total no of balls?
  • Q The constitution of India empowers ________ to levy tax on income.
  • Q Explain what is musculoskeletal physiotherapy?
  • Q Explain about Operator and Object security and differentiate operator security is at min level Object security for object level?
  • Q Where is Nagarhole national park-
  • Q Air Lingus is the national airline of which country
  • Q Write on the physiological functions of liver.