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

Is javascript written in c?

1075


What does nil mean in c?

1286


What is string in c language?

1172


How to find a missed value, if you want to store 100 values in a 99 sized array?

1416


What is a sequential access file?

1188


What are the main characteristics of c language describe the structure of ac program?

1223


What does %c do in c?

1002


Write a c program to demonstrate character and string constants?

2205


write a progrmm in c language take user interface generate table using for loop?

2059


What is 1d array in c?

1106


explain what are actual arguments?

1099


Explain how do I determine whether a character is numeric, alphabetic, and so on?

1147


What are the different types of constants?

1083


how to make a scientific calculater ?

2083


What are the types of assignment statements?

1080