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
What is getche() function?
Function which gives a pointer to a binary trees const an integer value at each code, return function of all the nodes in binary tree.?
How can I write data files which can be read on other machines with different word size, byte order, or floating point formats?
Why is c called "mother" language?
Is python a c language?
Do you have any idea how to compare array with pointer in c?
code for quick sort?
What is #include stdio h and #include conio h?
Where is volatile variable stored?
How do you search data in a data file using random access method?
application attempts to perform an operation?
Why is void main used?
Why do we use pointer to pointer in c?
Write a C program to count the number of email on text
Which header file is essential for using strcmp function?