How does the copy constructor differ from the assignment operator (=)?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C++ General Interview Questions

What is the best c++ ide?

0 Answers  


What are the 2 main types of data structures?

0 Answers  


Write a program in c++ to print the numbers from n to n2 except 5 and its multiples

0 Answers   Cankaya University,


What are the five types of inheritance in C++?

1 Answers  


Const char *p , char const *p What is the difference between the above two?

0 Answers   TCS,


Is it possible for the objects to read and write themselves?

0 Answers  


What is the use of "new" operator?

0 Answers  


What are files in c++?

0 Answers  


Write a C program to calculate the salary of each employee in your company. You need to input the hours worked and the hourly rate. The company pays 1.5 times the hourly rate for all hours worked in excess of 48 hours. Use the formulas below to calculate the salary: if employee worked less than 48 hours salary = hours * rate; if employee worked more than 48 hours salary = 48.0 * rate + ( hours − 48.0 ) * rate * 1.5; You are required to use a loop to produce the sample output as given below.

1 Answers  


What is the advantage of c++ over c?

0 Answers  


When a function is made inline. Write the situation where inline functions may not work.

2 Answers  


Can static member variables be private?

0 Answers  


Categories