Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What does c mean in basketball?

1048


What is c language and why we use it?

1121


What is a structure and why it is used?

1294


Why do we need a structure?

1081


Why do we use static in c?

1177


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.

1994


There is a practice in coding to keep some code blocks in comment symbols than delete it when debugging. How this affect when debugging?

1357


hi any body pls give me company name interview conduct "c" language only

2323


What is pointer to pointer in c?

1152


What are the different types of C instructions?

1374


explain what are actual arguments?

1144


Explain the Difference between the New and Malloc keyword.

1190


What does sizeof int return?

1135


What is getch() function?

1109


how we can make 3d venturing graphics on outer interface

4900