int main()
{
int *p=new int;
*p=10;
del p;
cout<<*p;
*p= 60;
cout<<*p;
}
what will be the output & why?
Answer Posted / anu
I think error will come bcoz memory allocated to *P is
already deleted d it will point to nowhere now....
| Is This Answer Correct ? | 3 Yes | 5 No |
Post New Answer View All Answers
What does c mean in basketball?
What is c language and why we use it?
What is a structure and why it is used?
Why do we need a structure?
Why do we use static in c?
I need a help with a program: Write a C program that uses data input in determining the whole of points A and a whole of circles B. Find two points in A so that the line which passes through them, cut through the maximum number of circles.
There is a practice in coding to keep some code blocks in comment symbols than delete it when debugging. How this affect when debugging?
hi any body pls give me company name interview conduct "c" language only
What is pointer to pointer in c?
What are the different types of C instructions?
explain what are actual arguments?
Explain the Difference between the New and Malloc keyword.
What does sizeof int return?
What is getch() function?
how we can make 3d venturing graphics on outer interface