differance between copy & clon

Answer Posted / vaibhav darji

copy(): it will copy the structure of data and data also.
clone(): it will copy the structure of data only.

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is flush programming?

765


What is a singleton c++?

762


Difference between a homogeneous and a heterogeneous container

895


Write a program to read the data and evaluate the results of the election. Print all output to the screen. Your output should specify: The total number of votes, the number of valid votes and the number of spoilt votes. The winner(s) of the election. Hint: An appropriate search should be used to determine the winner(s). The votes obtained by each candidate sorted in terms of the number of votes obtained. Hint: An appropriate sort should be used to sort the candidate(s). The Source code should be saved as VotingSystem. Project Input: Candidates’ Names and Numbers 2501 Victor Taylor 2502 Denise Duncan 2503 Kamal Ramdhan 2504 Michael Ali 2505 Anisa Sawh 2506 Carol Khan 2507 Gary Owen Votes 3 1 2 5 4 3 5 3 5 3 2 8 1 6 7 7 3 5 6 9 3 4 7 1 2 4 5 5 1 4 0 Project Output: Invalid vote: 8 Invalid vote: 9 Number of voters: 30 Number of valid votes: 28 Number of spoilt votes: 2 The winner(s): 2503 Kamal Ramdhan 2505 Anisa Sawh Candidate Score 2503 Kamal Ramdhan 6 2505 Anisa Sawh 6 2501 Victor Taylor 4 2504 Michael Ali 4 2502 Denise Duncan 3 2507 Gary Owen 3 2506 Carol Khan 2

2866


Can a Structure contain a Pointer to itself?

795


What is the use of namespace std in C++?

816


What are function prototypes?

964


What are the methods of exporting a function from a dll?

845


What do you understand by zombie objects in c++?

827


What are the characteristics of friend functions?

760


What is protected inheritance?

797


Show the declaration for a pointer to function returning long and taking an integer parameter.

772


Describe Trees using C++ with an example.

834


Is c++ pass by reference or value?

780


Which operator cannot be overloaded c++?

776