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
why wipro wase
What is this pointer in c plus plus?
Explain the meaning of keyword 'extern' in a function declaration.
Tell us something about keyword 'auto'.
The performance of an operation in several steps with each step using the output of the preceding step a) recursion b) search c) call by value d) call by reference
How is = symbol different from == symbol in c programming?
explain what are actual arguments?
why use functions a) writing functions avoids rewriting the same code over and over b) using functions it becomes easier to write programs and keep track of what they are doing c) a & b d) none of the above
What is variable initialization and why is it important?
what is the difference between 123 and 0123 in c?
application attempts to perform an operation?
Explain how do you print only part of a string?
illustrate the use of address operator and dereferencing operator with the help of a program guys plzzz help for this question
What are the different types of data structures in c?
What are the 3 types of structures?