What is the difference between a shallow copy and a deep copy?
Answer Posted / hr@tgksolutions.com
• Shallow Copy: Copies memory addresses. Changes in one object affect the other.
• Deep Copy: Creates a new copy of the actual data, independent of the original
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What are the implicit member functions of class?
I want explanation for this assignment: how to connect mysql database using c/c++,please explain this detailly?
What is c++ map?
What is stream and its types in c++?
What are guid? Why does com need guids?
What is the use of map in c++?
What are arrays c++?
Is there any function that can skip certain number of characters present in the input stream?
When should we use container classes instead of arrays?
Explain the difference between realloc() and free() in c++?
What is the use of c++ programming language in real life?
write a program that reads in a file and counts the number of lines, words, and characters. Your program should ask the user to input a filename. Open the file and report an error if the file does not exist or cannot be opened for some other reason. Then read in the contents of the file and count the number of lines, words, and characters in the file. Also print additional information about the file, such as the longest and shortest words, and longest and shortest lines. For simplicity, we define a word to be one or more characters ending with white space (a space, tab, carriage return, etc.). Functions for checking the types of characters can be found in the ctype.h header file, so you want to include this header file in your program. For example, the sentence below could be all that is in a file. This sentence IT 104 is taught in C++. has 32 characters, one line, and six words. The shortest line is 32 characters. The longest line is 32 characters. The shortest word is 2 characters. The longest word is 6 characters
What do you mean by funtion prototype?
What is the use of pointer in c++ with example?
Discuss the possibilities related to the termination of a program before entering the mainq method?