What are smart pointers?
Answers were Sorted based on User's Feedback
Answer / nashiinformaticssolutions
• Smart pointers like std::unique_ptr, std::shared_ptr, and std::weak_ptr manage dynamic memory automatically, preventing memory leaks.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / glibwaresoftsolutions
• Smart pointers like std::unique_ptr, std::shared_ptr, and std::weak_ptr manage dynamic memory automatically, preventing memory leaks.
| Is This Answer Correct ? | 0 Yes | 0 No |
• Smart pointers like std::unique_ptr, std::shared_ptr, and std::weak_ptr manage dynamic memory automatically, preventing memory leaks.
| Is This Answer Correct ? | 0 Yes | 0 No |
when can we use virtual destructor?
7 Answers HCL, HP, Virage Logic,
What is encapsulation in C++? Give an example.
0 Answers HAL, Honeywell, Zomato,
Given the following seqment of code containing a group of nested if instructions: y = 9; if ((x==3) || (x == 5)) y++; else if (x == 2) y *= 2; else if (x == 4 ) y-= 7; else y = 8; Enter a segment of code (without any IF statements) that does exectly the same thing using the switch structure.
What is a loop? What are different types of loops in c++?
What are abstract data types in c++?
What is diamond problem in c++?
Can we use this pointer inside static member function?
How can we read/write Structures from/to data files?
What is an inclusion guard?
What are the extraction and insertion operators in c++? Explain with examples.
What is the hardest coding language to learn?
What is auto used for in c++?