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
Is javascript written in c?
What does nil mean in c?
What is string in c language?
How to find a missed value, if you want to store 100 values in a 99 sized array?
What is a sequential access file?
What are the main characteristics of c language describe the structure of ac program?
What does %c do in c?
Write a c program to demonstrate character and string constants?
write a progrmm in c language take user interface generate table using for loop?
What is 1d array in c?
explain what are actual arguments?
Explain how do I determine whether a character is numeric, alphabetic, and so on?
What are the different types of constants?
how to make a scientific calculater ?
What are the types of assignment statements?