Hi!
Is it true that we can overload delete operator in a class only once?
If yes, why is it so?
User Profile
Collapse
-
overloading delete operator
-
==============
Hi Ben,
No, its not a course/home work !
I n fact the question is from a book and they have given the answers too . but I am not sure that the answers are right. i have an interview 2morrow n it will be really helpful if u check these-
(these r the answers from the book itself)
1. p=new int [MAXROW][sizeof(*p)/sizeof(int)];
2. p=new int[1]MAXROW][MAXCOL];... -
Be specific with the question. What kind of unconditional statements ?...Leave a comment:
-
-
internal & external static
Hi!
What are internal & external staticvariables and functions? what's their scope and how do they differ? -
Variable arguments in C++
Hi!
How to use variable arguments in C++ using (...). -
new replacing malloc
Hi!
Can someone tell me the correct answer for these ...
Replace the following code using new operator-
(Assume int is 2 bytes)
#define MAXROW 3
#define MAXCOL 4
1.)
void main()
{
int (*p)[MAXCOL];
p=(int(*) [MAXCOL]) malloc(MAXROW*s izeof(*p));
}
2.)
void main()
{
int (*p)[MAXROW][MAXCOL];
p=(int(*)... -
Actually, I don't know! I am a computer engineer (fresher) , looking for job. They had this question in the test paper for a job. It was exactly " Which is faster - heap or stack? Explain with example" . And I didn't know what was it about!
Could u tell something?
I'll b really grateful !
Thanks...Leave a comment:
-
No activity results to display
Show More
Leave a comment: