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 / hemang

There will be error because del is used instead of delete. in c++ delete is the keyword not del. delete is used to delete an object.

So program will not run....

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a null pointer assignment error? What are bus errors, memory faults, and core dumps?

1378


What are the two forms of #include directive?

1099


The number of measuring units from an arbitarary starting point in a record,area,or control block to some other point a) recording pointer b) offset c) branching d) none

1184


What is variable and explain rules to declare variable in c?

1016


Is there any data type in c with variable size?

1033


Can true be a variable name in c?

986


What is the best way to store flag values in a program?

1009


What are integer variable, floating-point variable and character variable?

1183


What are 3 types of structures?

1026


What are examples of structures?

1026


What is keyword with example?

1012


What is the use of function in c?

1141


C program execution always begins with a) #include b) comment (/*-------*/) c) main() d) declaration instructions

1001


What extern c means?

931


What is union in c?

1060