Which is used to solve the memory management problem in c++?
What are the operators available in dynamic memory allocation?
What is meant by garbage collection?
What is the output of this program?
1. #include2. #include 3. using namespace std; 4. int main() 5. { 6. try 7. { 8. char *p; 9. strcpy(p, "How r u"); 10. } 11. catch(const exception& er) 12. { 13. } 14. }
What is the output of this program?
1. #include2. using namespace std; 3. int funcstatic(int) 4. { 5. int sum = 0; 6. sum = sum + 10; 7. return sum; 8. } 9. int main(void) 10. { 11. int r = 5, s; 12. s = funcstatic(r); 13. cout << s << endl; 14. return 0; 15. }